Project

General

Profile

« Previous | Next » 

Revision bdc2992e

Added by Pepe Ciardelli almost 17 years ago

JFace databinding enabled except for in the IEditorInput object passed to the name editor view. All references to CDM have been removed.

View differences:

eclipseprojects/eu.etaxonomy.taxeditor.prototype1/src/eu/etaxonomy/taxeditor/prototype1/Activator.java
1 1
package eu.etaxonomy.taxeditor.prototype1;
2 2

  
3
//import org.eclipse.core.databinding.DataBindingContext;
4
//import org.eclipse.core.databinding.beans.BeansObservables;
5
//import org.eclipse.core.databinding.observable.value.IObservableValue;
3 6
import org.eclipse.jface.resource.ImageDescriptor;
4 7
import org.eclipse.swt.graphics.Image;
5 8
import org.eclipse.ui.plugin.AbstractUIPlugin;
......
20 23
	// The shared instance
21 24
	private static Activator plugin;
22 25
	
23
	private CdmApplicationController cdmApp = new CdmApplicationController();
26
//	private CdmApplicationController cdmApp = new CdmApplicationController();
24 27
	
25 28
	private ObjectList objectList = new ObjectList();
26 29
		
......
29 32
	 */
30 33
	public Activator() {
31 34
//		makeNames();
32
	}
33 35

  
34
	private void makeNames() {
35
		TaxonName tn = cdmApp.getNameService().createTaxonName(null);
36
		tn.setGenus("Hieracium");
37
		tn.setSpecificEpithet("joemama");
38
		cdmApp.getNameService().saveTaxonName(tn);
39 36
	}
40 37

  
38

  
41 39
	/*
42 40
	 * (non-Javadoc)
43 41
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
......
84 82
	/**
85 83
     * @return the objectList
86 84
     */
87
    public CdmApplicationController getApplicationController() {
88
        return this.cdmApp;
89
    }	
85
//    public CdmApplicationController getApplicationController() {
86
//        return this.cdmApp;
87
//    }	
90 88
	
91 89
	
92 90
    /**

Also available in: Unified diff