Package org.eclipse.jface.wizard

Examples of org.eclipse.jface.wizard.WizardDialog


  public void getCredentials(final CloudFoundryServer server) {
    Display.getDefault().syncExec(new Runnable() {

      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

  protected boolean promptForUnsetValues(Map<String, String> optionsVariables, Map<String, String> envVariables) {
    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

    Action addRemoveApplicationAction = new Action(Messages.ApplicationMasterPart_TEXT_ADD_REMOVE,
        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

        UIJob uiJob = new UIJob(Messages.ApplicationMasterPart_JOB_REMOVE_ROUTE) {

          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

    Action addServiceAction = new Action(Messages.COMMONTXT_ADD_SERVICE, CloudFoundryImages.NEW_SERVICE) {
      @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

                try {
                  DeploymentInfoWorkingCopy infoWorkingCopy = appModule
                      .resolveDeploymentInfoWorkingCopy(monitor);

                  EnvVarsWizard wizard = new EnvVarsWizard(cloudServer, appModule, infoWorkingCopy);
                  WizardDialog dialog = new WizardDialog(editorPage.getEditorSite().getShell(),
                      wizard);
                  dialog.open();
                  return Status.OK_STATUS;
                }
                catch (CoreException e) {
                  return e.getStatus();
                }
View Full Code Here

                  return;
                }
                else if (CloudErrorUtil.isWrongCredentialsException(coreException)) {
                  CloudFoundryCredentialsWizard wizard = new CloudFoundryCredentialsWizard(editorPage
                      .getCloudServer());
                  WizardDialog dialog = new WizardDialog(Display.getDefault().getActiveShell(),
                      wizard);
                  if (dialog.open() == Dialog.OK) {
                    CloudFoundryEditorAction.this.run();
                    return;
                  }
                }
              }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.wizard.WizardDialog

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.