blob: 4c064a792c2a1ee1a72f9dade4180a21e5ac4da4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 Sonatype, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.m2e.wtp;
import org.eclipse.m2e.wtp.internal.preferences.MavenWtpPreferencesManagerImpl;
import org.eclipse.m2e.wtp.preferences.IMavenWtpPreferencesManager;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
/**
* m2e-wtp plugin
*
* @author Eugene Kuleshov
*/
public class MavenWtpPlugin extends AbstractUIPlugin {
public static final String ID = "org.eclipse.m2e.wtp"; //$NON-NLS-1$
private static MavenWtpPlugin instance;
private IMavenWtpPreferencesManager preferenceManager;
public IMavenWtpPreferencesManager getMavenWtpPreferencesManager() {
return preferenceManager;
}
public MavenWtpPlugin() {
instance = this;
}
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
this.preferenceManager = new MavenWtpPreferencesManagerImpl();
}
@Override
public void stop(BundleContext context) throws Exception {
super.stop(context);
}
public static MavenWtpPlugin getDefault() {
return instance;
}
}