All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bndtools.builder.jobs.newproject.NewProjectJobsStartupParticipant Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package org.bndtools.builder.jobs.newproject;

import org.bndtools.api.IStartupParticipant;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.ResourcesPlugin;

public class NewProjectJobsStartupParticipant implements IStartupParticipant {

	private final IResourceChangeListener listener = new NewProjectResourceListener();

	@Override
	public void start() {
		ResourcesPlugin.getWorkspace()
			.addResourceChangeListener(listener);
	}

	@Override
	public void stop() {
		ResourcesPlugin.getWorkspace()
			.removeResourceChangeListener(listener);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy