Examples of ILog


Examples of org.eclipse.core.runtime.ILog

public class Logging {
  private static DjangoActivator plugin = DjangoActivator.getDefault();


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

Examples of org.eclipse.core.runtime.ILog

  public static void warn(String message){
    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);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    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);
    log.log(status);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    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;
    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

Examples of org.eclipse.core.runtime.ILog

public class Logging {
  private static DjangoPlugin plugin = DjangoPlugin.getDefault();


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

Examples of org.eclipse.core.runtime.ILog

  public static void warn(String message){
    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);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    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);
    log.log(status);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.ILog

    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;
    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

Examples of org.eclipse.core.runtime.ILog

                        System.out
                                .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

Examples of org.eclipse.core.runtime.ILog

    public static Activator getDefault() {
        return plugin;
    }

    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);
    }
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.