Project

General

Profile

Download (910 Bytes) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.taxeditor.molecular;
2

    
3
import org.eclipse.ui.plugin.AbstractUIPlugin;
4
import org.osgi.framework.BundleContext;
5

    
6
/**
7
 * The activator class controls the plug-in life cycle
8
 */
9
public class TaxeditorMolecularPlugin extends AbstractUIPlugin {
10

    
11
	// The plug-in ID
12
	public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.molecular"; //$NON-NLS-1$
13

    
14
	// The shared instance
15
	private static TaxeditorMolecularPlugin plugin;
16

    
17
	/**
18
	 * The constructor
19
	 */
20
	public TaxeditorMolecularPlugin() {
21
	}
22

    
23
	@Override
24
    public void start(BundleContext context) throws Exception {
25
		super.start(context);
26
		plugin = this;
27
	}
28

    
29
	@Override
30
    public void stop(BundleContext context) throws Exception {
31
		plugin = null;
32
		super.stop(context);
33
	}
34

    
35
	/**
36
	 * Returns the shared instance
37
	 *
38
	 * @return the shared instance
39
	 */
40
	public static TaxeditorMolecularPlugin getDefault() {
41
		return plugin;
42
	}
43

    
44
}
(2-2/2)