Package org.eclipse.ui.dialogs

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


          projectName);
    }
    if (javaProject != null) {
      dialog.setInitialSelections(new Object[] { javaProject });
    }
    if (dialog.open() == Window.OK) {
      return (IJavaProject) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here


          projectName);
    }
    if (javaProject != null) {
      dialog.setInitialSelections(new Object[] { javaProject });
    }
    if (dialog.open() == Window.OK) {
      return (IJavaProject) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

          projectName);
    }
    if (javaProject != null) {
      dialog.setInitialSelections(new Object[] { javaProject });
    }
    if (dialog.open() == Window.OK) {
      return (IJavaProject) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

          projectName);
    }
    if (javaProject != null) {
      dialog.setInitialSelections(new Object[] { javaProject });
    }
    if (dialog.open() == Window.OK) {
      return (IJavaProject) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

    dialog.setElements(configurations.toArray());
    dialog.setTitle("Select GWT application");
    dialog.setMessage("&Select existing configuration:");
    dialog.setMultipleSelection(false);
    //
    int result = dialog.open();
    labelProvider.dispose();
    if (result == Window.OK) {
      return (ILaunchConfiguration) dialog.getFirstResult();
    }
    return null;
View Full Code Here

      dialog.setTitle("Select GWT module");
      dialog.setMessage("&Select module to launch:");
      dialog.setMultipleSelection(false);
    }
    //
    int result = dialog.open();
    if (result == Window.OK) {
      return (ModuleDescription) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

        if (project != null) {
          dialog.setInitialSelections(new Object[]{project});
        }
      }
      // open dialog and set new project
      if (dialog.open() == Window.OK) {
        IJavaProject project = (IJavaProject) dialog.getFirstResult();
        m_projectField.setText(project.getElementName());
      }
    }
View Full Code Here

        dialog.setElements(modules.toArray());
      } catch (Throwable e) {
        DesignerPlugin.log(e);
      }
      // open dialog and return result
      if (dialog.open() == Window.OK) {
        ModuleDescription moduleDescription = (ModuleDescription) dialog.getFirstResult();
        String moduleId = moduleDescription.getId();
        m_moduleField.setText(moduleId);
      }
    }
View Full Code Here

        if (project != null) {
          dialog.setInitialSelections(new Object[]{project});
        }
      }
      // open dialog and set new project
      if (dialog.open() == Window.OK) {
        IJavaProject project = (IJavaProject) dialog.getFirstResult();
        m_projectField.setText(project.getElementName());
        m_dirWarField.setText(WebUtils.getWebFolderName(project));
      }
    }
View Full Code Here

        dialog.setElements(modules.toArray());
      } catch (Throwable e) {
        DesignerPlugin.log(e);
      }
      // open dialog and return result
      if (dialog.open() == Window.OK) {
        ModuleDescription module = (ModuleDescription) dialog.getFirstResult();
        String moduleId = module.getId();
        m_moduleField.setText(moduleId);
      }
    }
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.