Package org.eclipse.core.runtime

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


  }

  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 class Log {

  public static void warn(final String message) {
    final ILog log = ChartsPlugin.getDefault().getLog();
    log.log(new Status(IStatus.WARNING, ChartsPlugin.ID, 0, message, null));
  }

}
View Full Code Here

   * @param status
   */
  public static void log(IStatus status)
  {
      ILog log = getDefault().getLog();
      log.log(status);
  }
 
  /**
   * @param message
   * @param excp
View Full Code Here

        if (currentPlugin != null)
        {
            final ILog log = currentPlugin.getLog();
            if (log != null)
            {
                log.log(logStatus);
            }
        }
        System.err.println(logStatus);
    }
View Full Code Here

      if (default1 != null)
      {
        ILog log = default1.getLog();
        if (log != null)
        {
          log.log(logObject);
          return;
        }
      }
      System.err.println(logObject.toString());
    }
View Full Code Here

     * @param t
     */
    public static void log(final String message, final Throwable t)
    {
        final ILog log = plugin.getLog();
        log.log(new Status(IStatus.ERROR, plugin.getBundle().getSymbolicName(),
                0, message, t));
    }

    @Override
    public String getPluginID()
View Full Code Here

        if (currentPlugin != null)
        {
            final ILog log = currentPlugin.getLog();
            if (log != null)
            {
                log.log(logStatus);
            }
        }
        System.err.println(logStatus);
    }
View Full Code Here

      if (default1 != null)
      {
        ILog log = default1.getLog();
        if (log != null)
        {
          log.log(logObject);
          return;
        }
      }
      System.err.println(logObject.toString());
    }
View Full Code Here

     * @param t
     */
    public static void log(final String message, final Throwable t)
    {
        final ILog log = plugin.getLog();
        log.log(new Status(IStatus.ERROR, plugin.getBundle().getSymbolicName(),
                0, message, t));
    }
   
    /**
     * @param name
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.