4fdfcccf061b42486016b8927f957287e1314781
4 package eu
.etaxonomy
.taxeditor
.editor
.key
.handler
;
6 import org
.eclipse
.core
.commands
.AbstractHandler
;
7 import org
.eclipse
.core
.commands
.ExecutionEvent
;
8 import org
.eclipse
.core
.commands
.ExecutionException
;
9 import org
.eclipse
.ui
.IEditorPart
;
10 import org
.eclipse
.ui
.handlers
.HandlerUtil
;
12 import eu
.etaxonomy
.taxeditor
.editor
.key
.AbstractKeyEditor
;
18 public class ApplyLayoutHandler
extends AbstractHandler
{
21 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
24 public Object
execute(ExecutionEvent event
) throws ExecutionException
{
25 IEditorPart editor
= HandlerUtil
.getActiveEditor(event
);
27 if(editor
instanceof AbstractKeyEditor
){
28 ((AbstractKeyEditor
) editor
).applyLayout();