|
||||||||||
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.gmf.effects.CompartmentCollapseExpandEffect
public class CompartmentCollapseExpandEffect
This Effect collapses or expands compartments. The execute() method expands while the undo method collapses.
Constructor Summary | |
---|---|
CompartmentCollapseExpandEffect(IWorkbenchPart editor,
EObject node,
EStructuralFeature thefeatureToCollapse,
int theCompartmentLevel,
boolean collapse)
The compartment level gives the hierarchy to which to search for compartments to doCollapse. |
|
CompartmentCollapseExpandEffect(IWorkbenchPart editor,
EObject node,
EStructuralFeature thefeatureToCollapse,
int theCompartmentLevel,
boolean collapse,
boolean persistent)
The compartment level gives the hierarchy to which to search for compartments to doCollapse. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
IWorkbenchPart |
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(). |
String |
toString()
|
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, wait, wait, wait |
Constructor Detail |
---|
public CompartmentCollapseExpandEffect(IWorkbenchPart editor, EObject node, EStructuralFeature thefeatureToCollapse, int theCompartmentLevel, boolean collapse)
editor
- the DiagramEditor containing the EObjectnode
- the EObject to doCollapse/expandthefeatureToCollapse
- 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 expandingpublic CompartmentCollapseExpandEffect(IWorkbenchPart editor, EObject node, EStructuralFeature thefeatureToCollapse, int theCompartmentLevel, boolean collapse, boolean persistent)
editor
- the DiagramEditor containing the EObjectnode
- the EObject to doCollapse/expandthefeatureToCollapse
- 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 expandingpersistent
- true if the collapsing should be persistentMethod 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()
isMergeable
in interface IEffect
isMergeable
in class AbstractEffect
public IEffect merge(IEffect otherEffect)
merge
in interface IEffect
merge
in class AbstractEffect
otherEffect
- the effect to merge with
public IWorkbenchPart getTargetEditor()
public EObject getTargetNode()
public String toString()
toString
in class AbstractEffect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |