1 package eu
.etaxonomy
.taxeditor
.prototype1
;
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
;
9 import eu
.etaxonomy
.taxeditor
.prototype1
.model
.ObjectList
;
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();
24 private ObjectList objectList
= new ObjectList();
34 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
36 public void start(BundleContext context
) throws Exception
{
43 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
45 public void stop(BundleContext context
) throws Exception
{
51 * Returns the shared instance
53 * @return the shared instance
55 public static Activator
getDefault() {
60 * Returns an image descriptor for the image file at the given
61 * plug-in relative path
63 * @param path the path
64 * @return the image descriptor
66 public static ImageDescriptor
getImageDescriptor(String path
) {
67 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
71 public Image
getImage(String key
) {
72 return getImageRegistry().get(key
);
76 * @return the objectList
78 public CdmApplicationController
getApplicationController() {
84 * @return the objectList
86 public ObjectList
getObjectList() {
87 return this.objectList
;