de.cau.cs.kieler.ksbase.ui.kivi
Class KSBasETrigger

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractTrigger
      extended by de.cau.cs.kieler.ksbase.ui.kivi.KSBasETrigger
All Implemented Interfaces:
ITrigger, ITransformationEventListener

public class KSBasETrigger
extends AbstractTrigger
implements ITransformationEventListener

A Trigger that listens to KSBasE transformations.

Rating red

Nested Class Summary
static class KSBasETrigger.KSBasEState
          Contains the state of the KSBasE trigger: The selected EObject after the transformation and its DiagramEditor.
 
Constructor Summary
KSBasETrigger()
           
 
Method Summary
 void register()
          Called when the trigger is activated, e.g., if KIVi is (re-)activated or the first ICombination being fired by such a trigger is loaded.
 void transformationAboutToExecute(Object[] args)
          Notifies the listener that a transformation is about to be executed.
 void transformationExecuted(Object[] args)
          Notifies the listener that a transformation has been executed.
 void unregister()
          Called when the trigger is deactivated, e.g., if the whole KIVi is deactivated.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractTrigger
isActive, setActive, synchronizedTrigger, trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSBasETrigger

public KSBasETrigger()
Method Detail

register

public void register()
Description copied from class: AbstractTrigger
Called when the trigger is activated, e.g., if KIVi is (re-)activated or the first ICombination being fired by such a trigger is loaded. Registers itself where necessary.

Specified by:
register in interface ITrigger
Specified by:
register in class AbstractTrigger

unregister

public void unregister()
Description copied from class: AbstractTrigger
Called when the trigger is deactivated, e.g., if the whole KIVi is deactivated. Unregisters itself where necessary.

Specified by:
unregister in interface ITrigger
Specified by:
unregister in class AbstractTrigger

transformationExecuted

public void transformationExecuted(Object[] args)
Notifies the listener that a transformation has been executed.

Specified by:
transformationExecuted in interface ITransformationEventListener
Parameters:
args - The following array: 0 : The diagram object on which the transformation has been executed. 1 : The currently active editor.

transformationAboutToExecute

public void transformationAboutToExecute(Object[] args)
Notifies the listener that a transformation is about to be executed.

Specified by:
transformationAboutToExecute in interface ITransformationEventListener
Parameters:
args - List of parameters for the listener.