Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IStatus


    }
    else if (new URLNameValidation(url).hasInvalidCharacters()) {
      errorMessage = Messages.INVALID_CHARACTERS_ERROR;
    }

    IStatus status = errorMessage != null ? CloudFoundryPlugin.getErrorStatus(errorMessage) : Status.OK_STATUS;

    return status;
  }
View Full Code Here


  }

  protected void validateBuildPack() {

    IStatus status = Status.OK_STATUS;
    // Clear the previous buildpack anyway, as either a new one valid one
    // will be set
    // or if invalid, it should be cleared from the descriptor. The
    // descriptor should only contain
    // either null or a valid URL.
View Full Code Here

    handleChange(new PartChangeEvent(buildpack, status, CloudUIEvent.BUILD_PACK_URL));

  }

  protected IStatus getUpdateNameStatus() {
    IStatus status = Status.OK_STATUS;
    if (ValueValidationUtil.isEmpty(appName)) {
      status = CloudFoundryPlugin.getStatus(Messages.CloudFoundryApplicationWizardPage_ERROR_MISSING_APPNAME,
          IStatus.ERROR);
    }
    else {
View Full Code Here

    return selectedSpace;
  }

  protected void refresh() {

    IStatus status = Status.OK_STATUS;
    if (serverName == null || serverName.trim().length() == 0) {
      status = CloudFoundryPlugin.getErrorStatus(Messages.ERROR_VALID_SERVER_NAME);
    }
    else if (nameExists(serverName)) {
      status = CloudFoundryPlugin.getErrorStatus(Messages.ERROR_SERVER_NAME_ALREADY_EXISTS);
View Full Code Here

      }

      return true;
    }
    catch (InvocationTargetException e) {
      IStatus status = cloudServer.error(
          NLS.bind(Messages.CloudFoundryServiceWizardPage1_ERROR_CONFIG_RETRIVE, e.getCause().getMessage()), e);
      StatusManager.getManager().handle(status, StatusManager.LOG);
      setMessage(status.getMessage(), IMessageProvider.ERROR);
    }
    catch (InterruptedException e) {
      // ignore
    }
View Full Code Here

    if (status == null) {
      return null;
    }
    final ValidationStatus[] validationStatus = new ValidationStatus[] { status };

    IStatus iStatus = validationStatus[0].getStatus();

    if (validationStatus[0].getEventType() == ValidationEvents.SELF_SIGNED
        && iStatus.getException() instanceof SSLPeerUnverifiedException) {

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

        public void run() {
View Full Code Here

    String userName = cfServer.getUsername();
    String password = cfServer.getPassword();
    String url = cfServer.getUrl();

    IStatus eventStatus = null;

    if (validationStatus.getStatus().isOK()) {

      // If credentials changed, clear the space descriptor. If a server
      // validation is required later on
View Full Code Here

    return validationStatus;

  }

  protected ValidationStatus getValidationStatus(int statusType, String validationMessage, int eventType) {
    IStatus status = CloudFoundryPlugin.getStatus(validationMessage, statusType);
    return getValidationStatus(status, eventType);
  }
View Full Code Here

    // error when the wizard credentials page first opens. INFO will still
    // keep
    // wizard buttons disabled until an OK status is sent.
    int statusType = valuesFilled ? IStatus.OK : IStatus.INFO;

    IStatus status = CloudFoundryPlugin.getStatus(message, statusType);
    return getValidationStatus(status, validationEventType);
  }
View Full Code Here

    // Do not automatically delete apps on errors, even
    // if critical errors
    // as there may be features that may allow an app to
    // be redeployed without drag/drop (i.e. clicking
    // "Start").
    IStatus errorStatus = CloudFoundryPlugin.getErrorStatus(NLS.bind(Messages.ERROR_FAILED_TO_PUSH_APP,
        e.getMessage()));
    CloudFoundryPlugin.log(errorStatus);
    CloudFoundryPlugin.getCallback().handleError(errorStatus, BehaviourEventType.APP_START);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.IStatus

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.