Package org.eclipse.core.runtime

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


  static public void logError(String msg) {
    ILog log = plugin.getLog();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg + "\n", null);
    log.log(status);
  }
}
View Full Code Here


    StringWriter stringWriter = new StringWriter();
    e.printStackTrace(new PrintWriter(stringWriter));
    String msg = stringWriter.getBuffer().toString();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg, null);
    log.log(status);
  }

  static public void logError(String msg) {
    ILog log = plugin.getLog();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
View Full Code Here

  static public void logError(String msg) {
    ILog log = plugin.getLog();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg + "\n", null);
    log.log(status);
  }
}
View Full Code Here

    StringWriter stringWriter = new StringWriter();
    e.printStackTrace(new PrintWriter(stringWriter));
    String msg = stringWriter.getBuffer().toString();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg, null);
    log.log(status);
  }

  static public void logError(String msg) {
    ILog log = plugin.getLog();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
View Full Code Here

  static public void logError(String msg) {
    ILog log = plugin.getLog();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg + "\n", null); //$NON-NLS-1$
    log.log(status);
  }

  public static IWorkbenchWindow getActiveWorkbenchWindow() {
    return getDefault().getWorkbench().getActiveWorkbenchWindow();
  }
View Full Code Here

   * @param message
   *            A {@link String} to be logged.
   */
  public void logInfoStatus(String message) {
    ILog log = Platform.getLog(getBundle());
    log.log(getStatus(Status.INFO, message));
  }

  @Override
  public void start(BundleContext context) throws Exception {
    super.start(context);
View Full Code Here

  public void log(Throwable t) {
    ILog log = Platform.getLog(plugin.getBundle());
    Status status = new Status(Status.ERROR, plugin.getBundle()
        .getSymbolicName(), Status.ERROR, t.getLocalizedMessage(), t); //$NON-NLS-1$
    log.log(status);
  }

  public void handleException(String message) {
    handleException(message, null);
  }
View Full Code Here

      }
    }
    ILog log = Platform.getLog(plugin.getBundle());
    Status status = new Status(Status.ERROR, plugin.getBundle()
        .getSymbolicName(), Status.ERROR, message, e);
    log.log(status);
    if (plugin.getWorkbench() != null
        && plugin.getWorkbench().getActiveWorkbenchWindow() != null
        && plugin.getWorkbench().getActiveWorkbenchWindow().getShell() != null) {
      Shell shell = plugin.getWorkbench().getActiveWorkbenchWindow()
          .getShell();
View Full Code Here

public class Logger {
  static public void log(String msg, int msgType) {
    ILog log = DerbyPlugin.getDefault().getLog();
    Status status = new Status(msgType, DerbyPlugin.getDefault().getBundle().getSymbolicName(), msgType, msg + "\n", null);
    log.log(status);
   
  }
}
View Full Code Here

    StringWriter stringWriter = new StringWriter();
    e.printStackTrace(new PrintWriter(stringWriter));
    String msg = stringWriter.getBuffer().toString();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
        .getSymbolicName(), IStatus.ERROR, msg, null);
    log.log(status);
  }

  static public void logError(String msg) {
    ILog log = plugin.getLog();
    Status status = new Status(IStatus.ERROR, getDefault().getBundle()
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.