Examples of open()


Examples of org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog.open()

          Set elements = cprovider.getTests(fPack);
          elements.remove(testSuiteType);
          dialog.setInitialSelections(elements.toArray());
          dialog.setSize(60, 25);
          dialog.setInput(fPack);
          if (dialog.open() == Window.OK) {
            fSelectedTestCases = dialog.getResult();
            try {
              PlatformUI.getWorkbench().getProgressService()
                  .busyCursorWhile(getRunnable());
            } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.dialogs.FilteredTypesSelectionDialog.open()

        FilteredTypesSelectionDialog dialog = new FilteredTypesSelectionDialog(getShell(), false, getWizard().getContainer(), scope, IJavaSearchConstants.TYPE);
        dialog.setTitle(NewWizardMessages.NewTypeWizardPage_ChooseEnclosingTypeDialog_title);
        dialog.setMessage(NewWizardMessages.NewTypeWizardPage_ChooseEnclosingTypeDialog_description);
        dialog.setInitialPattern(Signature.getSimpleName(getEnclosingTypeText()));

        if (dialog.open() == Window.OK) {
            return (IType) dialog.getFirstResult();
        }
        return null;
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.dialogs.MainTypeSelectionDialog.open()

    BusyIndicatorRunnableContext context = new BusyIndicatorRunnableContext();

    MainTypeSelectionDialog dialog = new MainTypeSelectionDialog( parent, context, searchScope, 0 );
    dialog.setTitle( "Find class" );
    dialog.setMessage( "Find the class used to launch the application" );
    if ( dialog.open() == Window.CANCEL ) {
      return null;
    }
    Object[] results = dialog.getResult();
    IType type = (IType) results[0];
    if ( type != null ) {
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.dialogs.OpenTypeSelectionDialog2.open()

        PlatformUI.getWorkbench().getProgressService(),
        null, IJavaSearchConstants.TYPE);
      dialog.setTitle("Search Behaviour Class");
      dialog.setMessage("Search for the behaviour class to verify");
     
      int result= dialog.open();
      if (result != IDialogConstants.OK_ID)
        return;
     
      Object[] types= dialog.getResult();
      if (types != null && types.length > 0) {
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.dialogs.PackageSelectionDialog.open()

          ClickPlugin.log(ex);
        }

        PackageSelectionDialog dialog = new PackageSelectionDialog(getShell(), context, style, scope);
        dialog.setMultipleSelection(false);
        if(dialog.open()==PackageSelectionDialog.OK){
          Object[] result = dialog.getResult();
          if(result.length >= 1){
            IPackageFragment fragment = (IPackageFragment)result[0];
            packageName.setText(fragment.getElementName());
          }
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.preferences.ProjectSelectionDialog.open()

                        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 {
View Full Code Here

Examples of org.eclipse.jdt.internal.ui.wizards.buildpaths.FolderSelectionDialog.open()

    dialog.setInput(wsroot);
    dialog.setValidator(validator);
    dialog.addFilter(filter);
    dialog.setInitialSelection(getProject());
    if (dialog.open() == FolderSelectionDialog.OK) {
      project.setText(((IProject)dialog.getFirstResult()).getName());
    }
  }

  private void selectFolder() {
View Full Code Here

Examples of org.eclipse.jetty.osgi.boot.internal.webapp.BundleWatcher.open()

        //Create a bundle tracker to help deploy webapps and ContextHandlers
        BundleWatcher bundleTrackerCustomizer = new BundleWatcher();
        bundleTrackerCustomizer.setWaitForDefaultServer(defaultServer != null);
        _webBundleTracker =  new BundleTracker(context, Bundle.ACTIVE | Bundle.STOPPING, bundleTrackerCustomizer);
        bundleTrackerCustomizer.setBundleTracker(_webBundleTracker);
        bundleTrackerCustomizer.open();
    }
   
   
   
    /* ------------------------------------------------------------ */
 
View Full Code Here

Examples of org.eclipse.jetty.server.Connector.open()

      connector.setPort(HTTP_PORT.get());
      server.addConnector(connector);
      server.setHandler(getRewriteHandler(rootHandler));

      try {
        connector.open();
        server.start();
      } catch (Exception e) {
        throw new LaunchException("Failed to start jetty server: " + e, e);
      }
View Full Code Here

Examples of org.eclipse.jetty.server.ServerConnector.open()

   
    ServerConnector sslConnector = new ServerConnector(server,sslcontextfactory);
        sslConnector.setPort(sslport);
        server.addConnector(sslConnector);
        try{
          sslConnector.open();
        }catch(Exception ex){
          ex.printStackTrace();
        }
  }
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.