Package org.eclipse.core.runtime

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



  public static void info(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.INFO, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void warn(String message){
    warning(message);
  }
View Full Code Here


    warning(message);
  }
  public static void warning(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.WARNING, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void error(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.ERROR, plugin.getPluginId(),0,message,null);
View Full Code Here

  }

  public static void error(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.ERROR, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void exception(Throwable ex){
    ILog log = plugin.getLog();
    IStatus status = null;
View Full Code Here

    if(ex instanceof CoreException){
      status = ((CoreException)ex).getStatus();
    } else {
      status = new Status(IStatus.ERROR, plugin.getPluginId(),0,ex.toString(),ex);
    }
    log.log(status);
  }

}
View Full Code Here


  public static void info(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.INFO, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void warn(String message){
    warning(message);
  }
View Full Code Here

    warning(message);
  }
  public static void warning(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.WARNING, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void error(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.ERROR, plugin.getPluginId(),0,message,null);
View Full Code Here

  }

  public static void error(String message){
    ILog log = plugin.getLog();
    IStatus status = new Status(IStatus.ERROR, plugin.getPluginId(),0,message,null);
    log.log(status);
  }

  public static void exception(Throwable ex){
    ILog log = plugin.getLog();
    IStatus status = null;
View Full Code Here

    if(ex instanceof CoreException){
      status = ((CoreException)ex).getStatus();
    } else {
      status = new Status(IStatus.ERROR, plugin.getPluginId(),0,ex.toString(),ex);
    }
    log.log(status);
  }

}
View Full Code Here

                                .println("Could not locate bundle for " + extensionPoint.getUniqueIdentifier()); //$NON-NLS-1$
                    }
                    bundle = CorePlugin.getDefault().getBundle();
                }
                ILog log = Platform.getLog(bundle);
                log.log(new Status(Status.ERROR, extension.getNamespaceIdentifier(), 0,
                        extensionPoint.getUniqueIdentifier() + Messages.ExtensionPointList_problem
                                + e, e));
            }
        }
    }
View Full Code Here

    }

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

    static void async(Runnable run) {
        if (Display.getCurrent() == null) {
            Display.getDefault().asyncExec(run);
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.