1
|
package eu.etaxonomy.taxeditor.bulkeditor.internal;
|
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
|
* @author n.hoffmann
|
10
|
* @version $Id: $
|
11
|
*/
|
12
|
public class TaxeditorBulkeditorPlugin extends AbstractUIPlugin {
|
13
|
|
14
|
// The plug-in ID
|
15
|
/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.bulkeditor"</code> */
|
16
|
public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.bulkeditor";
|
17
|
|
18
|
// The shared instance
|
19
|
private static TaxeditorBulkeditorPlugin plugin;
|
20
|
|
21
|
/**
|
22
|
* The constructor
|
23
|
*/
|
24
|
public TaxeditorBulkeditorPlugin() {
|
25
|
}
|
26
|
|
27
|
/*
|
28
|
* (non-Javadoc)
|
29
|
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
|
30
|
*/
|
31
|
/** {@inheritDoc} */
|
32
|
public void start(BundleContext context) throws Exception {
|
33
|
super.start(context);
|
34
|
plugin = this;
|
35
|
|
36
|
}
|
37
|
|
38
|
/*
|
39
|
* (non-Javadoc)
|
40
|
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
|
41
|
*/
|
42
|
/** {@inheritDoc} */
|
43
|
public void stop(BundleContext context) throws Exception {
|
44
|
plugin = null;
|
45
|
super.stop(context);
|
46
|
}
|
47
|
|
48
|
/**
|
49
|
* Returns the shared instance
|
50
|
*
|
51
|
* @return the shared instance
|
52
|
*/
|
53
|
public static TaxeditorBulkeditorPlugin getDefault() {
|
54
|
return plugin;
|
55
|
}
|
56
|
}
|