if (Platform.isRunning()) { Platform.addLogListener(logListener); }
/** * {@inheritDoc} * * @see org.eclipse.core.runtime.ILogListener#logging(org.eclipse.core.runtime.IStatus, * java.lang.String) */ public void logging(IStatus status, String plugin) { if (status.getPlugin().startsWith("org.eclipse.acceleo") //$NON-NLS-1$ || status.getPlugin().startsWith("org.eclipse.ocl") //$NON-NLS-1$ || AcceleoEnginePlugin.PLUGIN_ID.equals(status.getPlugin())) { // do something! } }
if (Platform.isRunning()) { Platform.removeLogListener(logListener); }