blob: 19687949744937a1e2c3c7d2fc4bc17e26eab138 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2013 Innoopract Informationssysteme GmbH and others.
* 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
*
* Contributors:
* Innoopract Informationssysteme GmbH - initial API and implementation
* EclipseSource - ongoing development
******************************************************************************/
package org.eclipse.rap.tools.launch.internal;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
public final class Activator extends AbstractUIPlugin {
public static final String PLUGIN_ID = "org.eclipse.rap.tools.launch"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
public static Activator getDefault() {
return plugin;
}
public static String getPluginId() {
return getDefault().getBundle().getSymbolicName();
}
/////////////////////////////
// AbstractUIPlugin overrides
public void start( BundleContext context ) throws Exception {
super.start( context );
plugin = this;
}
public void stop( BundleContext context ) throws Exception {
plugin = null;
super.stop( context );
}
}