Revision 69e82edd
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/internal/TaxeditorStorePlugin.java | ||
---|---|---|
5 | 5 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
6 | 6 |
import org.osgi.framework.BundleContext; |
7 | 7 |
|
8 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
|
9 |
|
|
10 | 8 |
/** |
11 | 9 |
* The activator class controls the plug-in life cycle |
12 | 10 |
* |
... | ... | |
14 | 12 |
* @version $Id: $ |
15 | 13 |
*/ |
16 | 14 |
public class TaxeditorStorePlugin extends AbstractUIPlugin { |
17 |
|
|
15 |
|
|
18 | 16 |
// The plug-in ID |
19 | 17 |
/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */ |
20 | 18 |
public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.editor"; |
21 | 19 |
|
22 | 20 |
// The shared instance |
23 | 21 |
private static TaxeditorStorePlugin plugin; |
24 |
|
|
22 |
|
|
25 | 23 |
/** |
26 | 24 |
* The constructor |
27 | 25 |
*/ |
... | ... | |
33 | 31 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) |
34 | 32 |
*/ |
35 | 33 |
/** {@inheritDoc} */ |
36 |
public void start(BundleContext context) throws Exception { |
|
34 |
@Override |
|
35 |
public void start(BundleContext context) throws Exception { |
|
37 | 36 |
super.start(context); |
38 |
|
|
37 |
|
|
39 | 38 |
plugin = this; |
40 | 39 |
|
41 |
PreferencesUtil.setDefaults(); |
|
40 |
//PreferencesUtil.setDefaults();
|
|
42 | 41 |
} |
43 | 42 |
|
44 | 43 |
/* |
... | ... | |
46 | 45 |
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) |
47 | 46 |
*/ |
48 | 47 |
/** {@inheritDoc} */ |
49 |
public void stop(BundleContext context) throws Exception { |
|
48 |
@Override |
|
49 |
public void stop(BundleContext context) throws Exception { |
|
50 | 50 |
plugin = null; |
51 | 51 |
super.stop(context); |
52 | 52 |
} |
... | ... | |
59 | 59 |
public static TaxeditorStorePlugin getDefault() { |
60 | 60 |
return plugin; |
61 | 61 |
} |
62 |
|
|
62 |
|
|
63 | 63 |
/** |
64 | 64 |
* Returns an image descriptor for the image file at the given |
65 | 65 |
* plug-in relative path |
... | ... | |
70 | 70 |
public static ImageDescriptor getImageDescriptor(String path) { |
71 | 71 |
return imageDescriptorFromPlugin(PLUGIN_ID, path); |
72 | 72 |
} |
73 |
|
|
74 |
|
|
73 |
|
|
74 |
|
|
75 | 75 |
/** |
76 | 76 |
* Exposes this normally protected method. |
77 | 77 |
* |
78 | 78 |
* @return a {@link org.eclipse.jface.resource.ImageRegistry} object. |
79 | 79 |
*/ |
80 |
public ImageRegistry createImageRegistry(){ |
|
80 |
@Override |
|
81 |
public ImageRegistry createImageRegistry(){ |
|
81 | 82 |
return super.createImageRegistry(); |
82 | 83 |
} |
83 | 84 |
} |
Also available in: Unified diff
local preferences database specific