Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Status


      applyToStatusLine(status.get(0));
      setPageComplete(false);
      return;
    }
   
    applyToStatusLine(new Status(Status.OK, Activator.PLUGIN_ID, ""));   
    computeResponse();
    setPageComplete(true);
  }
View Full Code Here


  }
 
  protected boolean performValidation() {
    List<String> validationMessages = validate();
    if (!validationMessages.isEmpty()) {
      updateStatus(new Status(Status.ERROR, Activator.PLUGIN_ID, validationMessages.get(0)));
      return false;
    } else {
      updateStatus(Status.OK_STATUS);
      return true;
   
View Full Code Here

      getModel().restoreDefaults();
      if (_binder != null) {         
        _binder.refresh();
      }
    } catch (IOException e) {
      Activator.getDefault().getLog().log(new Status(Status.ERROR, Activator.PLUGIN_ID, "Unable to restore property page defaults.", e));
    }
  }
View Full Code Here

    _fileEncoding = helper.determineDesignEncoding();
   
    try {
      _model = helper.createModel();
    } catch (IOException e) {
      Activator.getDefault().getLog().log(new Status(Status.ERROR, Activator.PLUGIN_ID, "Unable to retrieve designconfigurationmodel for tml resource '" + _tmlFile.getLocation() + "'.", e));
    }
   
    try {
      reload();
    } catch (IOException e) {
      Activator.getDefault().getLog().log(new Status(Status.ERROR, Activator.PLUGIN_ID, "Unable to init model for tml resource '" + _tmlFile.getLocation() + "'.", e));   
    }
  }
View Full Code Here

            WGARuntimeConfigurationModel model = new WGARuntimeConfigurationModel();
            try {
                model.init(runtime);
                if (model.getWgaDeployment() != null) {
                    if (!model.getWgaDeployment().getWGAVersion().isAtLeast(5, 3)) {
                        errors.add(new Status(IStatus.ERROR, WGADesignerPlugin.PLUGIN_ID, "The runtime must use at least OpenWGA 5.3 to export web applications. Please choose another runtime or update your OpenWGA version."));
                    }
                }
            }
            catch (IncompatibleWGAConfigVersion e) {
                errors.add(new Status(IStatus.ERROR, WGADesignerPlugin.PLUGIN_ID, "Incompatible WGA config version."));
            }
          
        }
    }
View Full Code Here

        break;
    }
  }
 
    private void applyStatus(String message, int severity) {
      Status status = new Status(severity, WGADesignerPlugin.PLUGIN_ID, message);
      applyToStatusLine(status);
    }
View Full Code Here

      try {
        server.connectToServer();
        item.setImage(2, WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_REMOTESERVER_REACHABLE));
      } catch (Exception e) {
        item.setImage(2, WGADesignerPlugin.getDefault().getImageRegistry().get(WGADesignerPlugin.IMAGE_REMOTESERVER_UNREACHABLE));
        messages.add(new Status(Status.ERROR, WGADesignerPlugin.PLUGIN_ID, "Unable to connect to server '" + server.getName() + "'.", e));
      }
    }
    return messages;
  }
View Full Code Here

  @Override
  public List<IStatus> validate() {
    List<IStatus> messages = new ArrayList<IStatus>();
    if (!(_tableControl.getTable().getSelectionCount() > 0)) {
      messages.add(new Status(IStatus.ERROR, WGADesignerPlugin.PLUGIN_ID, "Please select a server."));
    } else if (_txtBuild.getText().trim().equals("")) {
      messages.add(new Status(IStatus.ERROR, WGADesignerPlugin.PLUGIN_ID, "Please specify a buildnumber."));     
    }   
    return messages;
  }
View Full Code Here

    throwCoreException(message, null);
  }
 
  private void throwCoreException(String message, Exception e) throws CoreException {
    IStatus status =
      new Status(IStatus.ERROR, WGADesignerPlugin.PLUGIN_ID, IStatus.OK, message, e);
    throw new CoreException(status);   
  }
View Full Code Here

      break;
    }
  }

  private void applyStatus(String message, int severity) {
    Status status = new Status(severity, WGADesignerPlugin.PLUGIN_ID, message);
    applyToStatusLine(status);
  }
View Full Code Here

TOP

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

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.