Project

General

Profile

« Previous | Next » 

Revision 860316c8

Added by Patrick Plitzner over 6 years ago

ref #6595 removed e3 name editor classes (unstable navigator plugin)

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/internal/TaxeditorEditorPlugin.java
4 4
import org.eclipse.ui.plugin.AbstractUIPlugin;
5 5
import org.osgi.framework.BundleContext;
6 6

  
7
import eu.etaxonomy.taxeditor.editor.EditorStateManager;
8 7
import eu.etaxonomy.taxeditor.editor.UseObjectManager;
9 8
import eu.etaxonomy.taxeditor.editor.validation.ValidationContextListener;
10 9
import eu.etaxonomy.taxeditor.store.CdmStore;
......
19 18

  
20 19
	/** Constant <code>logger</code> */
21 20
	public static final Logger logger = Logger.getLogger(TaxeditorEditorPlugin.class);
22
	
21

  
23 22
	// The plug-in ID
24 23
	/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
25 24
	public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.editor"; //$NON-NLS-1$
26 25

  
27 26
	// The shared instance
28 27
	private static TaxeditorEditorPlugin plugin;
29
	
28

  
30 29
	/**
31 30
	 * The constructor
32 31
	 */
......
34 33
	}
35 34

  
36 35
	/** {@inheritDoc} */
37
	public void start(BundleContext context) throws Exception {
36
	@Override
37
    public void start(BundleContext context) throws Exception {
38 38
		super.start(context);
39
		
40
		EditorStateManager stateManager = new EditorStateManager();
41
		CdmStore.getContextManager().addContextListener(stateManager);
42
		
43
		UseObjectManager useManager = new UseObjectManager();  	 	 
39

  
40
		UseObjectManager useManager = new UseObjectManager();
44 41
		CdmStore.getContextManager().addContextListener(useManager);
45
		
42

  
46 43
		ValidationContextListener vcl = new ValidationContextListener();
47 44
//		CdmStore.getContextManager().addContextListener(vcl);
48
		
45

  
49 46
		plugin = this;
50 47
		logger.trace("Plugin started: " + this.getBundle().getSymbolicName()); //$NON-NLS-1$
51 48
	}
52 49

  
53 50

  
54 51
	/** {@inheritDoc} */
55
	public void stop(BundleContext context) throws Exception {
52
	@Override
53
    public void stop(BundleContext context) throws Exception {
56 54
		plugin = null;
57 55
		super.stop(context);
58 56
		logger.trace("Plugin stopped"); //$NON-NLS-1$

Also available in: Unified diff