Project

General

Profile

Download (1.17 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.taxeditor;
2

    
3
import org.apache.log4j.Logger;
4
import org.eclipse.ui.plugin.AbstractUIPlugin;
5
import org.osgi.framework.BundleContext;
6

    
7
/**
8
 * The activator class controls the plug-in life cycle
9
 */
10
public class TaxonomicEditorPlugin extends AbstractUIPlugin {
11
	private static final Logger logger = Logger
12
			.getLogger(TaxonomicEditorPlugin.class);
13

    
14
	// The plug-in ID
15
	public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.application";
16

    
17
	// The shared instance
18
	private static TaxonomicEditorPlugin plugin;
19
	
20
	/**
21
	 * The constructor
22
	 */
23
	public TaxonomicEditorPlugin() {
24
	}
25

    
26
	/*
27
	 * (non-Javadoc)
28
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
29
	 */
30
	public void start(BundleContext context) throws Exception {
31
		super.start(context);
32
		plugin = this;
33
	}
34

    
35
	/*
36
	 * (non-Javadoc)
37
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
38
	 */
39
	public void stop(BundleContext context) throws Exception {
40
		plugin = null;
41
		super.stop(context);
42
	}
43

    
44
	/**
45
	 * Returns the shared instance
46
	 *
47
	 * @return the shared instance
48
	 */
49
	public static TaxonomicEditorPlugin getDefault() {
50
		return plugin;
51
	}
52
}
(6-6/6)