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();
32 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
34 public void start(BundleContext context
) throws Exception
{
41 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
43 public void stop(BundleContext context
) throws Exception
{
49 * Returns the shared instance
51 * @return the shared instance
53 public static Activator
getDefault() {
58 * Returns an image descriptor for the image file at the given
59 * plug-in relative path
61 * @param path the path
62 * @return the image descriptor
64 public static ImageDescriptor
getImageDescriptor(String path
) {
65 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
69 public Image
getImage(String key
) {
70 return getImageRegistry().get(key
);
74 * @return the objectList
76 // public CdmApplicationController getApplicationController() {
77 // return this.cdmApp;