de.cau.cs.kieler.kiml.ui.diagram
Class SetOptionsEffect

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractEffect
      extended by de.cau.cs.kieler.kiml.ui.diagram.SetOptionsEffect
All Implemented Interfaces:
IEffect

public class SetOptionsEffect
extends AbstractEffect

An effect that sets layout options for a specific element.

Rating proposed yellow
(2011-01-13) msp

Constructor Summary
SetOptionsEffect(IWorkbenchPart part, EObject element, Map<String,Object> options)
          Creates an effect to set multiple options.
SetOptionsEffect(IWorkbenchPart part, EObject element, String optionId, Object value)
          Creates an effect to set a single option.
 
Method Summary
 void execute()
          Execute the effect.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect
isMergeable, merge, schedule, scheduleUndo, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetOptionsEffect

public SetOptionsEffect(IWorkbenchPart part,
                        EObject element,
                        String optionId,
                        Object value)
Creates an effect to set a single option.

Parameters:
part - the workbench part for which options are set
element - the model element for which options shall be set
optionId - layout option identifier
value - the new value (null to remove the option value)

SetOptionsEffect

public SetOptionsEffect(IWorkbenchPart part,
                        EObject element,
                        Map<String,Object> options)
Creates an effect to set multiple options.

Parameters:
part - the workbench part for which options are set
element - the model element for which options shall be set
options - map of layout option identifiers to values
Method Detail

execute

public void execute()
Execute the effect.