|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.AbstractEffect
de.cau.cs.kieler.core.model.effects.CompartmentCollapseExpandEffect
public class CompartmentCollapseExpandEffect
This Effect collapses or expands compartments. The execute() method expands while the undo method collapses.
Constructor Summary | |
---|---|
CompartmentCollapseExpandEffect(org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor editor,
EObject node,
EStructuralFeature featureToCollapse,
int theCompartmentLevel,
boolean collapse)
The compartment level gives the hierarchy to which to search for compartments to doCollapse. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor |
getTargetEditor()
Get the editor the effect is performed on. |
EObject |
getTargetNode()
Get the node the effect is performed on. |
boolean |
hasJustExecuted()
Determines whether the last call to execute() or undo() actually performed any changes. |
boolean |
isMergeable()
Determines whether this effect can be merged with previously scheduled effects. |
IEffect |
merge(IEffect otherEffect)
Merge this effect with another effect. |
void |
setCollapsed(boolean collapsed)
Set whether this effect should collapse or expand on the next execute(). |
void |
undo()
Undo the effect, i.e. |
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect |
---|
schedule, scheduleUndo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompartmentCollapseExpandEffect(org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor editor, EObject node, EStructuralFeature featureToCollapse, int theCompartmentLevel, boolean collapse)
editor
- the DiagramEditor containing the EObjectnode
- the EObject to doCollapse/expandfeatureToCollapse
- the feature of the EObject to doCollapse/expandtheCompartmentLevel
- hierarchy level. 0 means only exactly the given EditPart. Not implemented.collapse
- true if collapsing, false if expandingMethod Detail |
---|
public void execute()
public void undo()
undo
in interface IEffect
undo
in class AbstractEffect
public boolean hasJustExecuted()
public void setCollapsed(boolean collapsed)
collapsed
- true if collapsingpublic boolean isMergeable()
AbstractEffect
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect otherEffect)
AbstractEffect
merge
in interface IEffect
merge
in class AbstractEffect
otherEffect
- the effect to merge with
public org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor getTargetEditor()
public EObject getTargetNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |