Java Code Examples for org.eclipse.core.runtime.Platform#removeLogListener()

The following examples show how to use org.eclipse.core.runtime.Platform#removeLogListener() . 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: AbstractSyntaxProjectsManagerBasedTest.java    From eclipse.jdt.ls with Eclipse Public License 2.0 5 votes vote down vote up
@After
public void cleanUp() throws Exception {
	JavaLanguageServerPlugin.setPreferencesManager(oldPreferenceManager);
	projectsManager = null;
	Platform.removeLogListener(logListener);
	logListener = null;
	Arrays.asList(ProjectUtils.getAllProjects()).forEach(project -> {
		try {
			project.delete(true, new NullProgressMonitor());
		} catch (CoreException e) {
			JavaLanguageServerPlugin.logException(e.getMessage(), e);
		}
	});
	FileUtils.forceDelete(getWorkingProjectDirectory());
}
 
Example 2
Source File: AbstractProjectsManagerBasedTest.java    From eclipse.jdt.ls with Eclipse Public License 2.0 5 votes vote down vote up
@After
public void cleanUp() throws Exception {
	JavaLanguageServerPlugin.setPreferencesManager(oldPreferenceManager);
	projectsManager = null;
	Platform.removeLogListener(logListener);
	logListener = null;
	WorkspaceHelper.deleteAllProjects();
	FileUtils.forceDelete(getWorkingProjectDirectory());
	Job.getJobManager().setProgressProvider(null);
	JobHelpers.waitForJobsToComplete();
}
 
Example 3
Source File: LogHandler.java    From eclipse.jdt.ls with Eclipse Public License 2.0 4 votes vote down vote up
public void uninstall() {
	Platform.removeLogListener(this.logListener);
}
 
Example 4
Source File: ErrorLogListener.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * Unregisters the log listeners.
 */
public void unregister() {
  Platform.removeLogListener(logListener);

}
 
Example 5
Source File: ErrorLogListener.java    From goclipse with Eclipse Public License 1.0 4 votes vote down vote up
public void uninstall() {
	Platform.removeLogListener(this);
}
 
Example 6
Source File: Activator.java    From elexis-3-core with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public void stop(BundleContext context) throws Exception{
	Platform.removeLogListener(logListener);
}