org.eclipse.core.runtime.ILogListener Java Examples
The following examples show how to use
org.eclipse.core.runtime.ILogListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimpleEditorTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void setUp() throws Exception { super.setUp(); // listen to CoreLog use RuntimeLog to hear more TestsActivator.getInstance().getLog().addLogListener(new ILogListener() { @Override public void logging(IStatus status, String plugin) { if (IStatus.ERROR == status.getSeverity()) { fail(status.getMessage()); } } }); }
Example #2
Source File: LogHandler.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
public void install(JavaClientConnection rcpConnection) { this.dateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM); this.logLevelMask = getLogLevelMask(System.getProperty("log.level", ""));//Empty by default this.connection = rcpConnection; this.logListener = new ILogListener() { @Override public void logging(IStatus status, String bundleId) { processLogMessage(status); } }; Platform.addLogListener(this.logListener); }
Example #3
Source File: EmptyLog.java From workspacemechanic with Eclipse Public License 1.0 | 4 votes |
public void removeLogListener(ILogListener listener) { }
Example #4
Source File: EmptyLog.java From workspacemechanic with Eclipse Public License 1.0 | 4 votes |
public void addLogListener(ILogListener listener) { }