Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.NewFolderDialog


        }
        fNewFolderButton.setEnabled(fSelectedContainer != null);
    }

    protected void newFolderButtonPressed() {
        final NewFolderDialog dialog = new NewFolderDialog(getShell(), fSelectedContainer);
        if (dialog.open() == Window.OK) {
            final TreeViewer treeViewer = getTreeViewer();
            treeViewer.refresh(fSelectedContainer);
            final Object createdFolder = dialog.getResult()[0];
            treeViewer.reveal(createdFolder);
            treeViewer.setSelection(new StructuredSelection(createdFolder));
        }
    }
View Full Code Here


      updateOKStatus();
    }
  }

  protected Object createFolder(IContainer container) {
    NewFolderDialog dialog = new NewFolderDialog(getShell(), container);
    if (dialog.open() == Window.OK) {
      return dialog.getResult()[0];
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.dialogs.NewFolderDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.