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(EditorTransformationSettings editorSettings, KSBasETransformation transformation, List<EObject> selection)
          Creates and executes a transformation command by creating a request and execute the resulting command on the diagram command stack.
 LinkedList<ITransformationEventListener> getTransformationEventListeners()
          Getter for the transformationEventListeners.
 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.

getTransformationEventListeners

public LinkedList<ITransformationEventListener> getTransformationEventListeners()
Getter for the transformationEventListeners.

Returns:
the transformationEventListeners

createAndExecuteTransformationCommand

public void createAndExecuteTransformationCommand(EditorTransformationSettings editorSettings,
                                                  KSBasETransformation transformation,
                                                  List<EObject> selection)
Creates and executes a transformation command by creating a request and execute the resulting command on the diagram command stack.

Parameters:
editorSettings - The editor for which this transformation is
transformation - The transformation that should be executed
selection - A selection containing the edit parts that should be used. This may also be null, which indicates that the elements are selected automatically