1 package eu
.etaxonomy
.taxeditor
.store
.internal
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.jface
.resource
.ImageRegistry
;
5 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
6 import org
.osgi
.framework
.BundleContext
;
8 import eu
.etaxonomy
.taxeditor
.preference
.PreferencesUtil
;
11 * The activator class controls the plug-in life cycle
16 public class TaxeditorStorePlugin
extends AbstractUIPlugin
{
19 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
20 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.editor";
22 // The shared instance
23 private static TaxeditorStorePlugin plugin
;
28 public TaxeditorStorePlugin() {
33 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
36 public void start(BundleContext context
) throws Exception
{
41 PreferencesUtil
.setDefaults();
46 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
49 public void stop(BundleContext context
) throws Exception
{
55 * Returns the shared instance
57 * @return the shared instance
59 public static TaxeditorStorePlugin
getDefault() {
64 * Returns an image descriptor for the image file at the given
65 * plug-in relative path
67 * @param path the path
68 * @return the image descriptor
70 public static ImageDescriptor
getImageDescriptor(String path
) {
71 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
76 * Exposes this normally protected method.
78 * @return a {@link org.eclipse.jface.resource.ImageRegistry} object.
80 public ImageRegistry
createImageRegistry(){
81 return super.createImageRegistry();