Package org.cloudfoundry.ide.eclipse.server.core.internal

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


        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

      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

    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

   * 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

    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

      }
    }

    copy.save();

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

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

TOP

Related Classes of org.cloudfoundry.ide.eclipse.server.core.internal.ApplicationAction

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.