de.cau.cs.kieler.ksbase.ui.handler
Class TransformationCommandHandler

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by de.cau.cs.kieler.ksbase.ui.handler.TransformationCommandHandler
All Implemented Interfaces:
IHandler, IHandler2

public class TransformationCommandHandler
extends AbstractHandler

The generic transformation handler used for all UI actions.

Rating proposed yellow
(2009-12-15)

Field Summary
static String EDITOR_PARAM
          The list of classes an editor has to implement/extend to be valid for this framework.
static String TRANSFORMATION_PARAM
          The list of classes a diagram element has to implement/extend to be valid for this framework.
 
Constructor Summary
TransformationCommandHandler()
          Creates a new command handler.
 
Method Summary
 Object execute(ExecutionEvent event)
          Executes a transformation.
 
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDITOR_PARAM

public static final String EDITOR_PARAM
The list of classes an editor has to implement/extend to be valid for this framework.

See Also:
Constant Field Values

TRANSFORMATION_PARAM

public static final String TRANSFORMATION_PARAM
The list of classes a diagram element has to implement/extend to be valid for this framework.

See Also:
Constant Field Values
Constructor Detail

TransformationCommandHandler

public TransformationCommandHandler()
Creates a new command handler.

Method Detail

execute

public Object execute(ExecutionEvent event)
               throws ExecutionException
Executes a transformation. The editor and transformation settings are given by the extension point parameters Uses the TransformationUI manager to create and execute the transformation.

Parameters:
event - The source event
Returns:
Nothing
Throws:
ExecutionException - If the execution failed.