Examples of ApplicationAction


Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

          throw CloudErrorUtil
              .toCoreException("Unable to start application. Missing application deployment name in application deployment information."); //$NON-NLS-1$
        }

        final ApplicationAction deploymentMode = getDeploymentConfiguration().getApplicationStartMode();
        if (deploymentMode != ApplicationAction.STOP) {
          // Start the application. Use a regular request rather than
          // a staging-aware request, as any staging errors should not
          // result in a reattempt, unlike other cases (e.g. get the
          // staging
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

        CloudFoundryServer.class, null);
    if (cloudFoundryServer == null) {
      return Collections.emptyList();
    }

    ApplicationAction debugAction = getApplicationAction(serverModule, cloudFoundryServer);
    if (debugAction == null) {
      return Collections.emptyList();
    }

    // For now only handle one action per context request.
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

      setEnabled(true);
    }

    public void run() {
      final CloudFoundryServer cloudFoundryServer = descriptor.getCloudFoundryServer();
      final ApplicationAction debugAction = descriptor.getApplicationAction();
      Job job = new Job(debugAction.getDisplayName()) {

        protected IStatus run(IProgressMonitor monitor) {

          IModule[] modules = descriptor.getServerModule().getModule();
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

    String startLabelText = Messages.CloudFoundryDeploymentWizardPage_LABEL_START_APP;

    regularStartOnDeploymentButton = new Button(parent, SWT.CHECK);
    regularStartOnDeploymentButton.setText(startLabelText);
    ApplicationAction deploymentMode = descriptor.getApplicationStartMode();

    regularStartOnDeploymentButton.setSelection(deploymentMode == ApplicationAction.START);

    GridData buttonData = new GridData(SWT.FILL, SWT.FILL, false, false);

    if (!isServerDebugModeAllowed()) {
      buttonData.horizontalSpan = 2;
      buttonData.verticalIndent = 10;
    }

    regularStartOnDeploymentButton.setLayoutData(buttonData);

    regularStartOnDeploymentButton.addSelectionListener(new SelectionAdapter() {

      public void widgetSelected(SelectionEvent e) {
        boolean start = regularStartOnDeploymentButton.getSelection();
        ApplicationAction deploymentMode = null;

        // TODO: Uncomment when debug support is available once again
        // (post CF
        // 1.5.0)
        // if (isServerDebugModeAllowed()) {
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

   * This should be the ONLY way to set the selected deploy application
   * action.
   * @param action
   */
  protected void setCurrentStartDebugApplicationAction() {
    ApplicationAction currentDeployedAction = getCurrentDeploymentStateApplicationAction();
    if (restartAppButton != null) {
      restartAppButton.setSelectedAction(currentDeployedAction);
    }
    if (updateRestartAppButton != null) {
      updateRestartAppButton.setSelectedAction(currentDeployedAction);
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

    setRestartButtonDisplayProperties(restartAppButton.getSelectionButton(), ApplicationAction.RESTART);
    setRestartButtonDisplayProperties(updateRestartAppButton.getSelectionButton(), ApplicationAction.UPDATE_RESTART);
  }

  protected void setRestartButtonDisplayProperties(Button restartButton, ApplicationAction restartButtonAction) {
    ApplicationAction currentDeployedAction = getCurrentDeploymentStateApplicationAction();

    // Set the UI for the restart buttons, including tooltip text, based on
    // the currently deployed application action.
    switch (currentDeployedAction) {
    case START:
      restartButton.setImage(CloudFoundryImages.getImage(CloudFoundryImages.RESTART));
      restartButton
          .setToolTipText(restartButtonAction == ApplicationAction.UPDATE_RESTART ? Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART_APP
              : Messages.ApplicationDetailsPart_TEXT_RESTART_APP);

      break;
    case DEBUG:
      restartButton.setToolTipText(restartButtonAction == ApplicationAction.UPDATE_RESTART ? NLS.bind(
          Messages.ApplicationDetailsPart_TEXT_UPDATE_RESTART_IN_MODE, currentDeployedAction.getDisplayName()
              .toLowerCase()) : NLS.bind(Messages.ApplicationDetailsPart_TEXT_RESTART_IN_MODE,
          currentDeployedAction.getDisplayName().toLowerCase()));
      restartButton.setImage(CloudFoundryImages.getImage(CloudFoundryImages.RESTART_DEBUG_MODE));
      break;
    }
  }
View Full Code Here

Examples of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

      }
    }

    copy.save();

    ApplicationAction mode = deployStopped ? ApplicationAction.STOP : ApplicationAction.START;

    return new DeploymentConfiguration(mode);
  }
View Full Code Here

Examples of org.jitterbit.application.ui.action.ApplicationAction

                }
            }
        }

        private JMenuItem createMenuItem(TransformationPage page) {
            ApplicationAction action = page.getPageAction(actionId);
            if (action != null && action.isSupported()) {
                return new KongaMenuItem(action);
            }
            return null;
        }
View Full Code Here

Examples of org.jitterbit.application.ui.action.ApplicationAction

        addPageAction(LaunchTreeMapperToTextStructureWizardAction.ID, items);
        return items;
    }

    private void addPageAction(String id, List<JMenuItem> items) {
        ApplicationAction action = page.getPageAction(id);
        if (action != null && action.isSupported()) {
            items.add(new KongaMenuItem(action));
        }
    }
View Full Code Here

Examples of org.jitterbit.application.ui.action.ApplicationAction

        return menu;
    }

    private KongaMenuItem createMenuItem(InterchangeView view, EntityType t) {
        InterchangeActionFactory f = InterchangeActionFactory.getNewEntityFactory(t);
        ApplicationAction a = f.get(view);
        KongaMenuItem menuItem = new KongaMenuItem(a);
        return menuItem;
    }
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.