Examples of ProjectSelectionDialog


Examples of org.eclipse.dltk.ui.dialogs.ProjectSelectionDialog

          }
        }
      } catch (ModelException e) {
        // ignore
      }
      ProjectSelectionDialog dialog = new ProjectSelectionDialog(
          getShell(), projectsWithSpecifics);
      if (dialog.open() == Window.OK) {
        IScriptProject res = (IScriptProject) dialog.getFirstResult();
        openProjectProperties(res.getProject(), data);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.dltk.ui.dialogs.ProjectSelectionDialog

          }
        }
      } catch (CoreException e) {
        // ignore
      }
      ProjectSelectionDialog dialog = new ProjectSelectionDialog(
          getShell(), projectsWithSpecifics);
      if (dialog.open() == Window.OK) {
        ScriptProject result = (ScriptProject) dialog.getFirstResult();
        openProjectProperties(result.getProject(), data);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.preferences.ProjectSelectionDialog

                      for (int i=0; i<p.length; i++) {
                        //FIXME: we should make sure that we are adding IJavaProjects because
                        // the ProjectSelectionDialog constructor expects Set<IJavaProject> projectsWithSpecifics
                        projects.add(p[i]);
                      }
                      ProjectSelectionDialog dialog = new ProjectSelectionDialog(Display.getCurrent().getActiveShell(), projects);
                      dialog.setTitle(Messages.AddMacroLibrary_Title);
                      dialog.setMessage(Messages.AddMacroLibrary_Message);
                      int rtn = dialog.open();
                      if (rtn == IDialogConstants.OK_ID) {
                        if (dialog.getFirstResult() instanceof IJavaProject) {
                          project = ((IJavaProject) dialog.getFirstResult()).getProject();
                        }
                        else {
                          MessageDialog.openError(Display.getCurrent().getActiveShell(), Messages.AddMacroLibrary_Error, Messages.AddMacroLibrary_ErrorDesc);
                        }
                      }
View Full Code Here

Examples of org.erlide.ui.prefs.ProjectSelectionDialog

                    }
                    erlProjects.add(p);
                }
            } catch (final ErlModelException e) {
            }
            final ProjectSelectionDialog dialog = new ProjectSelectionDialog(getShell(),
                    erlProjects, projectsWithSpecifics);
            if (dialog.open() == Window.OK) {
                final IProject res = (IProject) dialog.getFirstResult();
                openProjectProperties(res);
            }
        }
    }
View Full Code Here

Examples of org.python.pydev.ui.dialogs.ProjectSelectionDialog

        } else {
            final Object[] found = new Object[1];
            RunInUiThread.sync(new Runnable() {

                public void run() {
                    ProjectSelectionDialog dialog = new ProjectSelectionDialog(PyAction.getShell(),
                            PythonNature.PYTHON_NATURE_ID);
                    dialog.setMessage("Choose the project that'll provide the interpreter and\n"
                            + "PYTHONPATH to be used in the launch of the file.");
                    if (dialog.open() == Window.OK) {
                        Object firstResult = dialog.getFirstResult();
                        if (firstResult instanceof IProject) {
                            found[0] = firstResult;
                        } else {
                            found[0] = new CoreException(new StatusInfo(IStatus.ERROR,
                                    "Expected project to be selected."));
View Full Code Here

Examples of runjettyrun.tabs.action.helper.ProjectSelectionDialog

   *
   * @see IAction#run()
   */
  public void run() {
    List<IJavaProject> projects = getPossibleAdditions();
    ProjectSelectionDialog dialog= new ProjectSelectionDialog(getShell(),projects);
    dialog.setTitle("Project Selection");
    MultiStatus status = new MultiStatus(Plugin.PLUGIN_ID, IJavaDebugUIConstants.INTERNAL_ERROR,
        "One or more exceptions occurred while adding projects.", null)//$NON-NLS-1$

    if (dialog.open() == Window.OK) {
      Object[] selections = dialog.getResult();

      List<IJavaProject> additions = new ArrayList<IJavaProject>(selections.length);
      for (int i = 0; i < selections.length; i++) {
        IJavaProject jp = (IJavaProject)selections[i];
          additions.add(jp);
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.