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 createErrorStatus(String msg, Exception e) {
    return new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), IStatus.ERROR, msg, e);
  }
View Full Code Here


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

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

    return new Status(IStatus.WARNING, status.getPlugin(), status.getCode(), msg.toString(), null);
  }
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 static IStatus createErrorStatus(String msg, Throwable e) {
    return new Status(IStatus.ERROR, PLUGIN_ID, IStatus.ERROR, msg, e);
  }
View Full Code Here

      job.setName(NLS.bind(Messages.DownloadService_N_OF_M, downloadFileName, OwlUI.getSize(bytesConsumed)));
    else
      job.setName(downloadFileName);

    /* The Label of the Status is used as Link for Action */
    return new Status(IStatus.OK, Activator.PLUGIN_ID, Messages.DownloadService_OPEN_FOLDER);
  }
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

  public void warn(String pMessage) {
    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

      // CB TODO, We can't call download here. Use queue  job instead. 
      // download(pDownload);
     
    } else {
      Activator.getDefault().getLog().log(
          new Status(IStatus.INFO, getClass().getName(), IStatus.OK,
              "Retry not allowed in status pauzed", null));
    }
  }
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

   * @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, Activator.getDefault().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.