1 package eu
.etaxonomy
.taxeditor
.prototype1
;
3 //import org.eclipse.core.databinding.DataBindingContext;
4 //import org.eclipse.core.databinding.beans.BeansObservables;
5 //import org.eclipse.core.databinding.observable.value.IObservableValue;
6 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
7 import org
.eclipse
.swt
.graphics
.Image
;
8 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
9 import org
.osgi
.framework
.BundleContext
;
11 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationController
;
12 import eu
.etaxonomy
.taxeditor
.prototype1
.model
.ObjectList
;
15 * The activator class controls the plug-in life cycle
17 public class Activator
extends AbstractUIPlugin
{
20 public static final String PLUGIN_ID
= "eu.etaxonomy.mvctest";
22 // The shared instance
23 private static Activator plugin
;
25 private CdmApplicationController cdmApp
= new CdmApplicationController();
26 private ObjectList taxonList
= new ObjectList();
27 private ObjectList recentNamesList
= new ObjectList();
33 taxonList
.setObjectList(cdmApp
.getNameService().getAllNames());
39 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
41 public void start(BundleContext context
) throws Exception
{
48 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
50 public void stop(BundleContext context
) throws Exception
{
56 * Returns the shared instance
58 * @return the shared instance
60 public static Activator
getDefault() {
65 * Returns an image descriptor for the image file at the given
66 * plug-in relative path
68 * @param path the path
69 * @return the image descriptor
71 public static ImageDescriptor
getImageDescriptor(String path
) {
72 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
76 public Image
getImage(String key
) {
77 return getImageRegistry().get(key
);
81 * @return the objectList
83 // public CdmApplicationController getApplicationController() {
84 // return this.cdmApp;
89 * @return the objectList
91 public ObjectList
getTaxonList() {
92 return this.taxonList
;
95 public ObjectList
getRecentNamesList() {
96 return this.recentNamesList
;