de.cau.cs.kieler.ksbase.ui
Class TransformationUIManager

java.lang.Object
  extended by de.cau.cs.kieler.ksbase.ui.TransformationUIManager

public final class TransformationUIManager
extends Object

Transformation-UI manager. Handles creation and execution of commands and notify of transformationEvent listeners

Rating proposed yellow
(2009-12-15)

Field Summary
static TransformationUIManager INSTANCE
          Transformation-UI instance.
 
Method Summary
 void addTransformationListener(ITransformationEventListener listener)
          Adds a listener to the post-transformation transformation listener queue.
 void createAndExecuteTransformationCommand(ExecutionEvent event, EditorTransformationSettings editor, KSBasETransformation transformation)
          Creates and executes a transformation command by creating a request and execute the resulting command on the diagram command stack.
 void removeTransformationListener(ITransformationEventListener listener)
          Removes a listener from the post-transformation listener queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TransformationUIManager INSTANCE
Transformation-UI instance.

Method Detail

addTransformationListener

public void addTransformationListener(ITransformationEventListener listener)
Adds a listener to the post-transformation transformation listener queue.

Parameters:
listener - The listener to add

removeTransformationListener

public void removeTransformationListener(ITransformationEventListener listener)
Removes a listener from the post-transformation listener queue.

Parameters:
listener - The listener to remove.

createAndExecuteTransformationCommand

public void createAndExecuteTransformationCommand(ExecutionEvent event,
                                                  EditorTransformationSettings editor,
                                                  KSBasETransformation transformation)
Creates and executes a transformation command by creating a request and execute the resulting command on the diagram command stack.

Parameters:
event - Execution event for which this command should be created
editor - The editor for which this transformation is
transformation - The transformation that should be executed