Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Status


   * @param msg The message describing the error.
   * @param e The Exception that occured.
   * @return An IStatus out of the given message and exception.
   */
  public IStatus createWarningStatus(String msg, Exception e) {
    return new Status(IStatus.WARNING, getBundle().getSymbolicName(), IStatus.WARNING, msg, e);
  }
View Full Code Here


   * @param msg The message describing the error.
   * @param e The Exception that occured.
   * @return An IStatus out of the given message and exception.
   */
  public IStatus createErrorStatus(String msg, Exception e) {
    return new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, msg, e);
  }
View Full Code Here

  public void info(String pMessage) {
    info(pMessage, null);
  }

  public void info(String pMessage, Exception e) {
    mLog.log(new Status(IStatus.INFO, mName, IStatus.OK, pMessage, e));
  }
View Full Code Here

    warn(pMessage, null);
  }

  public void warn(String pMessage, Exception e) {
   
    mLog.log(new Status(IStatus.WARNING, mName, IStatus.WARNING, pMessage, e));
  }
View Full Code Here

  public void error(String pMessage) {
    warn(pMessage, null);
  }

  public void error(String pMessage, Exception e) {
    mLog.log(new Status(IStatus.ERROR, mName, IStatus.ERROR, pMessage, e));
  }
View Full Code Here

    if (StringUtils.isSet(error.getMessage()))
      msg.append("\nProblem: ").append(error.getMessage());

    msg.append("\nLink: ").append(feedLink);

    return new Status(error.getSeverity(), error.getPlugin(), error.getCode(), msg.toString(), error.getException());
  }
View Full Code Here

   * @param msg The message describing the error.
   * @param e The Exception that occured.
   * @return An IStatus out of the given message and exception.
   */
  public IStatus createErrorStatus(String msg, Exception e) {
    return new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, msg, e);
  }
View Full Code Here

   * @param msg The message describing the error.
   * @param e The Exception that occured.
   * @return An IStatus out of the given message and exception.
   */
  public IStatus createErrorStatus(String msg, Exception e) {
    return new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, msg, e);
  }
View Full Code Here

   * @param e The occuring Exception to log.
   */
  public void logError(String msg, Throwable e) {
    if (msg == null)
      msg = ""; //$NON-NLS-1$
    getLog().log(new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, msg, e));
  }
View Full Code Here

   */
  public void logError(String msg, Exception e) {
    if (msg == null)
      msg = ""; //$NON-NLS-1$

    getLog().log(new Status(IStatus.ERROR, getBundle().getSymbolicName(), IStatus.ERROR, msg, e));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.Status

Copyright © 2018 www.massapicom. 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.