Search in sources :

Example 1 with BuildPathManager

use of com.github.sdedwards.m2e_nar.internal.BuildPathManager in project m2e-nar by maven-nar.

the class MavenNarPlugin method start.

/**
 * @noreference see class javadoc
 */
public void start(BundleContext bundleContext) throws Exception {
    super.start(bundleContext);
    if (Boolean.parseBoolean(Platform.getDebugOption(PLUGIN_ID + "/debug/initialization"))) {
        System.err.println("### executing start() " + PLUGIN_ID);
        new Throwable().printStackTrace();
    }
    // Make sure the m2e jdt plugin is initialised first
    MavenJdtPlugin.getDefault();
    MavenProjectManager projectManager = MavenPluginActivator.getDefault().getMavenProjectManager();
    this.buildpathManager = new BuildPathManager(projectManager);
    projectManager.addMavenProjectChangedListener(this.buildpathManager);
/*
		 * this.launchConfigurationListener = new
		 * MavenLaunchConfigurationListener();
		 * DebugPlugin.getDefault().getLaunchManager
		 * ().addLaunchConfigurationListener(launchConfigurationListener);
		 * projectManager
		 * .addMavenProjectChangedListener(launchConfigurationListener);
		 * 
		 * this.mavenClassifierManager = new MavenClassifierManager();
		 */
}
Also used : BuildPathManager(com.github.sdedwards.m2e_nar.internal.BuildPathManager) MavenProjectManager(org.eclipse.m2e.core.internal.project.registry.MavenProjectManager)

Aggregations

BuildPathManager (com.github.sdedwards.m2e_nar.internal.BuildPathManager)1 MavenProjectManager (org.eclipse.m2e.core.internal.project.registry.MavenProjectManager)1