1 package eu
.etaxonomy
.taxeditor
.editor
.handler
;
3 import org
.eclipse
.core
.commands
.AbstractHandler
;
4 import org
.eclipse
.core
.commands
.ExecutionEvent
;
5 import org
.eclipse
.core
.commands
.ExecutionException
;
6 import org
.eclipse
.ui
.PartInitException
;
8 import eu
.etaxonomy
.taxeditor
.editor
.EditorUtil
;
9 import eu
.etaxonomy
.taxeditor
.editor
.l10n
.Messages
;
10 import eu
.etaxonomy
.taxeditor
.editor
.view
.derivate
.DerivateViewEditorInput
;
11 import eu
.etaxonomy
.taxeditor
.model
.MessagingUtils
;
13 public class OpenDerivateViewHandler
extends AbstractHandler
{
16 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
18 EditorUtil
.open(new DerivateViewEditorInput());
19 } catch (PartInitException e
) {
20 MessagingUtils
.error(OpenDerivateViewHandler
.class, Messages
.OpenDerivateViewHandler_COULD_NOT_OPEN
, e
);