Package org.eclipse.core.runtime

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


    } catch (CoreException x) {
      IStatus status= x.getStatus();
      if (status == null || status.getSeverity() != IStatus.CANCEL) {
        Bundle bundle= Platform.getBundle(PlatformUI.PLUGIN_ID);
        ILog log= Platform.getLog(bundle);
        log.log(x.getStatus());

        Shell shell= getSite().getShell();
        String title= EditorMessages.Editor_error_validateEdit_title;
        String msg= EditorMessages.Editor_error_validateEdit_message;
        ErrorDialog.openError(shell, title, msg, x.getStatus());
View Full Code Here


          updateStateDependentActions();

      } catch (CoreException x) {
        Bundle bundle= Platform.getBundle(PlatformUI.PLUGIN_ID);
        ILog log= Platform.getLog(bundle);
        log.log(x.getStatus());
      }
    }
  }

  /**
 
View Full Code Here

          }
          hasFinished= true;
        } catch (RuntimeException ex) {
          String PLUGIN_ID= "org.eclipse.jface.text"; //$NON-NLS-1$
          ILog log= Platform.getLog(Platform.getBundle(PLUGIN_ID));
          log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, "Unexpected runtime error while computing a text hover", ex)); //$NON-NLS-1$
        } finally {
          synchronized (fMutex) {
            if (fTextViewer != null)
              fTextViewer.removeTextListener(fStopper);
            fThread= null;
View Full Code Here

  }

  public void logError(String msg, Throwable t) {
    ILog log = getDefault().getLog();
    Status s = new Status(Status.ERROR, PLUGIN_ID, msg, t);
    log.log(s);
  }

}
View Full Code Here

    ByteArrayOutputStream bs = new ByteArrayOutputStream();
    PrintStream ps = new PrintStream(bs);
    exc.printStackTrace(ps);
    IStatus stat = new Status(IStatus.ERROR, PHPDebugPlugin.ID,
        IStatus.ERROR, msg + "\n" + bs.toString(), null); //$NON-NLS-1$
    theLog.log(stat);
  }

  /**
   * Log an Error Message, message and exception sent to debug output as well.
   *
 
View Full Code Here

        msg.toString(), exc);
    debug(msg.toString());
    if (exc != null) {
      debugException(exc);
    }
    theLog.log(stat);
  }
}
View Full Code Here

          }
          hasFinished= true;
        } catch (RuntimeException ex) {
          String PLUGIN_ID= "org.eclipse.jface.text"; //$NON-NLS-1$
          ILog log= Platform.getLog(Platform.getBundle(PLUGIN_ID));
          log.log(new Status(IStatus.ERROR, PLUGIN_ID, IStatus.OK, "Unexpected runtime error while computing a text hover", ex)); //$NON-NLS-1$
        } finally {
          synchronized (fMutex) {
            if (fTextViewer != null)
              fTextViewer.removeTextListener(fStopper);
            fThread= null;
View Full Code Here

        // build an Eclipse Status record, map severity and code from Event.
        Status s = new Status(getSeverity(event), ForceIdeCorePlugin.getPluginId(), getCode(event),
                layout.format(event), t);

        log.log(s);
    }

    /**
     * map LoggingEvent's level to Status severity
     * @param ev
View Full Code Here

public class Logger {
  static public void log(String msg, int msgType) {
    ILog log = DerbyPlugin.getDefault().getLog();
    Status status = new Status(msgType, DerbyPlugin.getDefault().getBundle().getSymbolicName(), msgType, msg + "\n", null);
    log.log(status);
   
  }
}
View Full Code Here

    Bundle bundle = Platform.getBundle(TextEditorPlugin.PLUGIN_ID);
    ILog log= Platform.getLog(bundle);

    if (message != null)
      log.log(new Status(IStatus.ERROR, TextEditorPlugin.PLUGIN_ID, IStatus.OK, message, exception));
    else
      log.log(exception.getStatus());
  }

  /**
 
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.