Package org.eclipse.jdt.internal.ui.preferences

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

TOP

Related Classes of org.eclipse.jdt.internal.ui.preferences.ProjectSelectionDialog

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.