Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IStatus


      message = Messages.CLONE_SERVER_WIZARD_OK_MESSAGE;
    }

    int statusType = valuesFilled ? IStatus.OK : IStatus.ERROR;

    IStatus status = CloudFoundryPlugin.getStatus(message, statusType);

    return new ValidationStatus(status, validationEventType);

  }
View Full Code Here


   * @throws CoreException if unable to retrieve list of domains to check the
   * URL, or URL is invalid, including invalid subdomain or domain.
   */
  public CloudApplicationURL getCloudApplicationURL(String url) throws CoreException {

    IStatus isValidStatus = simpleValidation(url);
    if (!isValidStatus.isOK()) {
      throw new CoreException(isValidStatus);
    }

    if (domainsPerActiveSpace == null || domainsPerActiveSpace.isEmpty()) {
      throw new CoreException(
View Full Code Here

      if (event.getSource() == CloudRoutePart.ROUTES_REMOVED) {
        Object data = event.getData();
        if (data instanceof List<?>) {
          List<?> routes = (List<?>) data;
          IStatus errorInUse = null;
          for (Object obj : routes) {
            if (obj instanceof CloudRoute) {
              CloudRoute rt = (CloudRoute) obj;
              if (rt.inUse()) {
                errorInUse = CloudFoundryPlugin.getStatus(
View Full Code Here

  }

  protected void validate(boolean setErrorMessage) {
    String message = getValidationMessage();

    IStatus status = null;
    if (message != null) {
      // If it is an intial validation, generate an error status so
      // listeners can update controls accordingly (e.g.,
      // if invoking this part in a wizard, the "Finish" button is
      // disabled), but set the message to null as to not
View Full Code Here

  }

  @Override
  public IStatus validateDeploymentInfo(ApplicationDeploymentInfo deploymentInfo) {

    IStatus status = super.validateDeploymentInfo(deploymentInfo);
    if (status.isOK() && ((deploymentInfo.getUris() == null || deploymentInfo.getUris().isEmpty()))) {
      String errorMessage = Messages.JavaWebApplicationDelegate_ERROR_NO_MAPPED_APP_URL;
      status = CloudFoundryPlugin.getErrorStatus(errorMessage);
    }

    return status;
View Full Code Here

  protected IStatus connect(String debugIP, int debugPort, final IProgressMonitor monitor, String launchLabel) {

    final ILaunchConfiguration launchConfiguration = getLaunchConfiguration(debugIP, debugPort, 5000,
        getApplicationID(), launchLabel);
    boolean successful = false;
    IStatus status = Status.OK_STATUS;
    if (launchConfiguration != null) {
      try {
        Boolean result = new WaitWithProgressJob(5, 1000) {

          private boolean firstTry = true;
View Full Code Here

    super(pageName, title, titleImage);
  }

  protected IStatus getNextNonOKStatus() {
    // Check if there are other errors that haven't yet been resolved
    IStatus status = null;
    for (Entry<IEventSource<?>, IStatus> entry : partStatus.entrySet()) {
      status = entry.getValue();
      if (status != null && !status.isOK()) {
        break;
      }
    }
    return status;
  }
View Full Code Here

    }
    return status;
  }

  public void handleChange(PartChangeEvent event) {
    IStatus status = event.getStatus();
    if (status == null) {
      status = Status.OK_STATUS;
    }

    // If the part indicates its OK, remove it from the list of tracked
    // parts, as any error it would have previously
    // generated has now been fixed.
    if (status.isOK()) {
      partStatus.remove(event.getSource());

      // Check if there are other errors that haven't yet been resolved
      for (Entry<IEventSource<?>, IStatus> entry : partStatus.entrySet()) {
        status = entry.getValue();
View Full Code Here

    update(updateButtons, status);
  }

  @Override
  public boolean isPageComplete() {
    IStatus status = getNextNonOKStatus();
    return status == null;
  }
View Full Code Here

        }
      }
      else {
        performWhenPageVisible();
      }
      IStatus status = getNextNonOKStatus();
      if (status != null) {
        update(true, status);
      }
    }
  }
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.