Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Status


  protected void handleTestConnection() {
    if (validate().size() == 0) {     
      try {
        computeResponse();
        _server.connectToServer();
        updateStatus(new Status(Status.INFO, WGADesignerPlugin.PLUGIN_ID, "Server is reachable"));
      } catch (Exception e) {
        String message = null;
        if (e.getMessage() != null) {
          message = "Connection to server failed: '" + e.getMessage() + "'.";
        } else {
          message = "Connection to server failed. See log for details.";
        }       
        updateStatus(new Status(Status.WARNING, WGADesignerPlugin.PLUGIN_ID, message));
        WGADesignerPlugin.getDefault().logWarning("Unable to connect to server '" + _server.getUrl().toString() + "'.", e);
      }
    }
  }
View Full Code Here


          hasMDHeader = true;
        }
        provider.disconnect(input);
      }
    } catch (Exception e) {
      Plugin.getDefault().getLog().log(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Unable to check relyable for MD headers.", e));
    }
    return hasMDHeader;
  }
View Full Code Here

      if (_model != null) {
        try {
          _model.saveChanges();
          return true;
        } catch (IOException e) {
          Plugin.getDefault().getLog().log(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Unable to save tml file metadata.", e));
        }
      }
      return false;
    } else {
      return true;
View Full Code Here

          TMLTagValidator validator = null;
          if (validatorClassName != null) {
            try {
              validator = (TMLTagValidator) Class.forName(validatorClassName).newInstance();
            } catch (Exception e) {
              Plugin.getDefault().getLog().log(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Unable to intitialize attribute value lookup '" + validatorClassName + "'.", e));
            }
          }
          if (validator != null) {
            _allValidators.put(validatorClassName, validator);
          }
View Full Code Here

      if (validator != null) {
        try {
          validator.setVersionCompliance(versionCompliance);
          validator.validateAndMark(file, document, partition, tmlInfo, tag);
        } catch (Exception e) {
          Plugin.getDefault().getLog().log(new Status(Status.ERROR, Plugin.PLUGIN_ID, "Execution of tag validator '" + validatorClassName + "' failed.", e));
        }
      }       
    } 
  }
View Full Code Here

    while (it.hasNext()) {
      BeanListStoreListener listener = it.next();
      try {
        listener.handelEvent(new BeanListStoreEvent(BeanListStoreEvent.TYPE_STORE_FLUSHED));
      } catch (Exception e) {
        Activator.getDefault().getLog().log(new Status(Status.ERROR, Activator.PLUGIN_ID, "handelEvent() failed on listener '" + listener.getClass().getName() + "' .", e));
      }
    }

  }
View Full Code Here

        String statusMessage = message;
        if (statusMessage == null) {
          statusMessage = title;
        }
        if (e != null) {
          plugin.getLog().log(new Status(Status.ERROR, plugin.getBundle().getSymbolicName(), statusMessage, e));
        }
        else {
          plugin.getLog().log(new Status(Status.ERROR, plugin.getBundle().getSymbolicName(), statusMessage));
        }
      }
      if (shell != null) {
        StringBuffer errorMessage = new StringBuffer();
        if (message != null) {
View Full Code Here

 
 
 
  public void logError(String message, Throwable e) {
    if (e != null)
      getLog().log(new Status(Status.ERROR, PLUGIN_ID, message, e));
    else
      getLog().log(new Status(Status.ERROR, PLUGIN_ID, message));
  }
View Full Code Here

  }
 

  public void logError(Throwable e) {
    if (e != null)
      getLog().log(new Status(Status.ERROR, PLUGIN_ID, e.getMessage(), e));
    else
      getLog().log(new Status(Status.ERROR, PLUGIN_ID, "Unknown error occured."));   
  }
View Full Code Here

  }
 

  public void logInfo(String message, Throwable e) {
    if (e != null)
      getLog().log(new Status(Status.INFO, PLUGIN_ID, message, e));
    else
      getLog().log(new Status(Status.INFO, PLUGIN_ID, message));
  }
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.