Project

General

Profile

« Previous | Next » 

Revision 22f2d1a4

Added by Patrick Plitzner over 6 years ago

ref #6913 Remove org.eclipse.ui dependency from NavigationUtil

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/EditNewTaxonHandler.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
14 14
import org.eclipse.core.commands.ExecutionEvent;
15 15
import org.eclipse.core.commands.ExecutionException;
16 16
import org.eclipse.core.commands.IHandler;
17
import org.eclipse.swt.widgets.Display;
18
import org.eclipse.ui.PartInitException;
19 17

  
20 18
import eu.etaxonomy.taxeditor.editor.EditorUtil;
21 19

  
......
34 32
	 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
35 33
	 */
36 34
	/** {@inheritDoc} */
37
	public Object execute(ExecutionEvent event) throws ExecutionException {
38
		
35
	@Override
36
    public Object execute(ExecutionEvent event) throws ExecutionException {
37

  
39 38
		logger.debug("Handler called: " + this.getClass().getCanonicalName()); //$NON-NLS-1$
40
		
41
		try {
42
			EditorUtil.openEmptyE4(null);
43
		} catch (PartInitException e) {
44
			e.printStackTrace();
45
		}
39

  
40
		EditorUtil.openEmptyE4(null);
46 41

  
47 42
		return null;
48 43
	}

Also available in: Unified diff