Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.CheckedTreeSelectionDialog.open()


            "Namespace Paths",
            "Select folders:",
            new Class[] {IFolder.class},
            project, folders);

        if (dialog.open() == Dialog.OK) {
          namespace.clear();
          for (Object result : dialog.getResult()) {
            if (result instanceof IFolder) {
              namespace.add(((IFolder)result).getProjectRelativePath().toString());
            }
View Full Code Here


                if (sourceFilesViewer.getInput() != null) {
                    dialog.setInitialSelections(
                            ((List<?>)sourceFilesViewer.getInput()).toArray());
                }
                dialog.setTitle("Evaluate Clojure source file(s)");
                dialog.open();
               
                List<IFile> selectedFiles = new ArrayList<IFile>();
                Object[] dialogResult = dialog.getResult();
                if (dialogResult != null) {
                  for (Object o : dialogResult) {
View Full Code Here

    dialog.setInput(element);
    dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));
    dialog.setInitialSelections(contentProvider.getElements(project
        .getProject()));

    if (dialog.open() == ElementTreeSelectionDialog.OK) {
      Object[] selection = dialog.getResult();
      if (selection != null && selection.length > 0) {
        for (int i = 0; i < selection.length; i++) {
          IFile file = (IFile) selection[i];
          IWebflowConfig config = new WebflowConfig(project);
View Full Code Here

    dialog.setValidator(new ScannedFilesValidator(true));
    dialog.setInput(project.getProject());
    dialog.setSorter(new JavaElementSorter());
    dialog.setInitialSelections(contentProvider.getElements(project.getProject()));

    if (dialog.open() == Window.OK) {
      Object[] selection = dialog.getResult();
      if (selection != null && selection.length > 0) {
        for (Object element : selection) {
          String config;
          if (element instanceof IType) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.