|
||||||||||
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.ReorderEffect
public class ReorderEffect
An effect for reordering elements in a feature list.
Constructor Summary | |
---|---|
ReorderEffect(EObject container,
EStructuralFeature feature,
int[] newIndices)
Create a reorder effect for all elements. |
|
ReorderEffect(EObject container,
EStructuralFeature feature,
int oldIndex,
int newIndex)
Create a reorder effect for one element. |
Method Summary | |
---|---|
void |
execute()
Execute the effect. |
IEffect |
merge(IEffect otherEffect)
Merge this effect with another effect. |
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect |
---|
isMergeable, schedule, scheduleUndo, toString, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReorderEffect(EObject container, EStructuralFeature feature, int oldIndex, int newIndex)
container
- the container objectfeature
- the structural feature to affectoldIndex
- the old index of the object to reordernewIndex
- the new index of the object to reorderpublic ReorderEffect(EObject container, EStructuralFeature feature, int[] newIndices)
container
- the container objectfeature
- the structural feature to affectnewIndices
- an array of new indicesMethod Detail |
---|
public void execute()
public IEffect merge(IEffect otherEffect)
merge
in interface IEffect
merge
in class AbstractEffect
otherEffect
- the effect to merge with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |