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

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractCombination
      extended by de.cau.cs.kieler.ksbase.ui.kivi.KSBasECombination
All Implemented Interfaces:
ICombination, ITriggerListener

public class KSBasECombination
extends AbstractCombination

A Combination triggering the KSBasE transformations from kivi menu contributions.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.core.kivi.AbstractCombination
FIFTH, FIRST, FOURTH, SECOND, SEVENTH, SIXTH, THIRD
 
Constructor Summary
KSBasECombination(EditorTransformationSettings editorSettings)
           
 
Method Summary
 void addTransformation(String buttonID, KSBasETransformation transformation)
          Add a transformation to the combination.
 void execute(ButtonTrigger.ButtonState button, SelectionTrigger.EObjectSelectionState selection)
          
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractCombination
enableEffectRecording, getEffects, getTriggerStates, handle, isActive, latestState, latestStateIndex, schedule, schedule, setActive, toString, undo, undoRecordedEffects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KSBasECombination

public KSBasECombination(EditorTransformationSettings editorSettings)
Parameters:
editorSettings - the KSBasE editor settings used as a context for the transformation.
Method Detail

addTransformation

public void addTransformation(String buttonID,
                              KSBasETransformation transformation)
Add a transformation to the combination.

Parameters:
buttonID - the id to identify the transformation
transformation - the transformation to add

execute

public void execute(ButtonTrigger.ButtonState button,
                    SelectionTrigger.EObjectSelectionState selection)