Package org.eclipse.jface.wizard

Examples of org.eclipse.jface.wizard.WizardDialog.open()


        // Do not create the service right away.
        boolean deferAdditionOfService = true;
        CloudFoundryServiceWizard wizard = new CloudFoundryServiceWizard(cloudServer, deferAdditionOfService);
        WizardDialog dialog = new WizardDialog(getShell(), wizard);
        dialog.setBlockOnOpen(true);
        if (dialog.open() == Window.OK) {
          // This cloud service does not yet exist. It will be created
          // outside of the wizard
          CloudService addedService = wizard.getService();
          if (addedService != null) {
            addService(addedService);
View Full Code Here


   */
  protected CloudServerURL promptForCloudURL(String serverID, Shell shell, List<CloudServerURL> allURLs,
      String existingURL, String existingName) {
    CloudUrlWizard wizard = new CloudUrlWizard(serverID, allURLs, existingURL, existingName);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    if (dialog.open() == Dialog.OK) {
      return wizard.getCloudUrl();
    }
    return null;

  }
View Full Code Here

      public void run() {
        CloudFoundryCredentialsWizard wizard = new CloudFoundryCredentialsWizard(server);
        WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getModalDialogShellProvider()
            .getShell(), wizard);
        dialog.open();
      }
    });

    if (server.getUsername() == null || server.getUsername().length() == 0 || server.getPassword() == null
        || server.getPassword().length() == 0 || server.getUrl() == null || server.getUrl().length() == 0) {
View Full Code Here

    Display.getDefault().syncExec(new Runnable() {

      public void run() {
        DeleteServicesWizard wizard = new DeleteServicesWizard(cloudServer, services);
        WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
        dialog.open();
      }

    });
  }
View Full Code Here

    if ((optionsVariables != null && !optionsVariables.isEmpty())
        || (envVariables != null && !envVariables.isEmpty())) {

      SetValueVariablesWizard wizard = new SetValueVariablesWizard(optionsVariables, envVariables);
      WizardDialog dialog = new WizardDialog(shell, wizard);
      if (dialog.open() == Window.OK) {
        return true;
      }
      else {
        // user cancelled therefore return null;
        return false;
View Full Code Here

      ServiceCommandWizard wizard = new ServiceCommandWizard(serviceCommands, service, serviceCommandToEdit);
      Shell shell = getShell();

      if (shell != null) {
        WizardDialog dialog = new WizardDialog(shell, wizard);
        if (dialog.open() == Window.OK) {

          ServiceCommand editedCommand = wizard.getEditedServiceCommand();

          if (editedCommand != null) {
            // Add the new one
View Full Code Here

        ImageResource.getImageDescriptor(ImageResource.IMG_ETOOL_MODIFY_MODULES)) {
      @Override
      public void run() {
        ModifyModulesWizard wizard = new ModifyModulesWizard(cloudServer.getServerOriginal());
        WizardDialog dialog = new WizardDialog(getSection().getShell(), wizard);
        dialog.open();
      }
    };
    toolBarManager.add(addRemoveApplicationAction);

    // Fix for STS-2996. Moved from CloudFoundryApplicationsEditorPage
View Full Code Here

          public IStatus runInUIThread(IProgressMonitor monitor) {
            CloudRoutesWizard wizard = new CloudRoutesWizard(cloudServer);

            WizardDialog dialog = new WizardDialog(editorPage.getEditorSite().getShell(), wizard);
            dialog.open();
            return Status.OK_STATUS;
          }

        };
        uiJob.setSystem(true);
View Full Code Here

      @Override
      public void run() {
        IWizard wizard = new CloudFoundryServiceWizard(cloudServer);
        WizardDialog dialog = new WizardDialog(getSection().getShell(), wizard);
        dialog.setBlockOnOpen(true);
        dialog.open();
      }
    };
    toolBarManager.add(addServiceAction);
    toolBarManager.update(true);
    servicesSection.setTextClient(headerComposite);
View Full Code Here

        try {
          CloudFoundryApplicationModule appModule = getExistingApplication();

          MappedURLsWizard wizard = new MappedURLsWizard(cloudServer, appModule, appUrls);
          WizardDialog dialog = new WizardDialog(editorPage.getEditorSite().getShell(), wizard);
          if (dialog.open() == Window.OK) {
            updateAppUrls(wizard.getURLs());
          }
        }
        catch (CoreException ce) {
          logApplicationModuleFailureError(Messages.ApplicationDetailsPart_ERROR_OPEN_URL_WIZ);
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.