Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.ILog.log()


   * @param message message
   */
  public static void logError(String message){
    ILog log = getDefault().getLog();
    IStatus status = new Status(IStatus.ERROR,getDefault().getPluginId(),0,message,null);
    log.log(status);
  }
 
  /**
   * Logging exception information.
   *
 
View Full Code Here


    if(ex instanceof CoreException){
      status = ((CoreException)ex).getStatus();
    } else {
      status = new Status(IStatus.ERROR,getDefault().getPluginId(),0,ex.toString(),ex);
    }
    log.log(status);
  }
 
  /////////////////////////////////////////////////////////////////////////////////
  // Methods for extention points
  /////////////////////////////////////////////////////////////////////////////////
View Full Code Here

   * @see org.apache.uima.jcas.jcasgen_gen.IError#newError(int, java.lang.String)
   */
  public void newError(int severity, String message, Exception exception) {
    String pluginId = JgPlugin.getDefault().getDescriptor().getUniqueIdentifier();
    ILog log = JgPlugin.getDefault().getLog();
    log.log(new Status(logLevels[severity], pluginId, IStatus.OK, message, exception));
    if (IError.WARN < severity)
      throw new ErrorExit();
  }

}
View Full Code Here

   */
  public static void logException(final Throwable e) {

    final ILog log = getDefault().getLog();
    final String msg = "Encountered an unexpected exception.";
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }

  public static void logInfo(String message) {

    final ILog log = getDefault().getLog();
View Full Code Here

  }

  public static void logInfo(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.INFO, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logError(String message) {

    final ILog log = getDefault().getLog();
View Full Code Here

  }

  public static void logError(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logWarning(String message) {

    final ILog log = getDefault().getLog();
View Full Code Here

  }

  public static void logWarning(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.WARNING, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static Image getImage(String which) {
    return getDefault().getImageRegistry().get(which);
  }
View Full Code Here

 
  public static void logException(final Throwable e) {

    final ILog log = getDefault().getLog();
    final String msg = "Encountered an unexpected exception.";
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }
 
}
View Full Code Here

   */
  public static void logException(final Throwable e) {

    final ILog log = getDefault().getLog();
    final String msg = "Encountered an unexpected exception.";
    log.log(new Status(IStatus.ERROR, PLUGIN_ID, -1, msg, e));
  }
 
  public static void logInfo(String message) {

    final ILog log = getDefault().getLog();
View Full Code Here

  }
 
  public static void logInfo(String message) {

    final ILog log = getDefault().getLog();
    log.log(new Status(IStatus.INFO, PLUGIN_ID, IStatus.OK, message, null));
  }

  public static void logError(String message) {

    final ILog log = getDefault().getLog();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.