3e52b5d05e8f0b99e146f17601e4415b7bdc9017
1 package eu
.etaxonomy
.taxeditor
.designproposal1
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.swt
.graphics
.Image
;
5 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
6 import org
.osgi
.framework
.BundleContext
;
8 //import eu.etaxonomy.cdm.api.application.CdmApplicationController;
12 * The activator class controls the plug-in life cycle
14 public class Activator
extends AbstractUIPlugin
{
17 public static final String PLUGIN_ID
= "eu.etaxonomy.mvctest";
19 // The shared instance
20 private static Activator plugin
;
22 // private CdmApplicationController cdmApp = new CdmApplicationController();
33 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
35 public void start(BundleContext context
) throws Exception
{
42 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
44 public void stop(BundleContext context
) throws Exception
{
50 * Returns the shared instance
52 * @return the shared instance
54 public static Activator
getDefault() {
59 * Returns an image descriptor for the image file at the given
60 * plug-in relative path
62 * @param path the path
63 * @return the image descriptor
65 public static ImageDescriptor
getImageDescriptor(String path
) {
66 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
70 public Image
getImage(String key
) {
71 return getImageRegistry().get(key
);
75 * @return the objectList
77 // public CdmApplicationController getApplicationController() {
78 // return this.cdmApp;