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

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

   * @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);
   
    // TODO debug
    ex.printStackTrace();
  }
 
View Full Code Here

    }

    private void error(String message) {
        ILog log = Activator.getDefault().getLog();
        String pluginId = Activator.PLUGIN_ID;
        log.log(new Status(Status.ERROR, pluginId, message));
        System.out.println(message);
    }

    private void log(String message) {
        ILog log = Activator.getDefault().getLog();
View Full Code Here

    }

    private void log(String message) {
        ILog log = Activator.getDefault().getLog();
        String pluginId = Activator.PLUGIN_ID;
        log.log(new Status(Status.INFO, pluginId, message));
        System.out.println(message);
    }

    /*
     * Updates the button. If there is a connection to an android device
View Full Code Here

        return new Status(severity, Activator.PLUGIN_ID, code, message, exception);
    }

    public static void log(IStatus status) {
        ILog log = Activator.getDefault().getLog();
        log.log(status);
    }
}
View Full Code Here

        return new Status(severity, Activator.PLUGIN_ID, code, message, exception);
    }

    public static void log(IStatus status) {
        ILog log = Activator.getDefault().getLog();
        log.log(status);
        NodeclipseConsole.write(status.getMessage()+"\n");
    }
}
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.