public interface IModelManipulationService
| Modifier and Type | Method and Description |
|---|---|
MObject |
clone(MObject element)
Clone the given element and attach it to the same parent.
|
java.util.List<MObject> |
copyTo(java.util.Collection<? extends MObject> elements,
MObject to)
Copy the given elements under another one.
|
void |
moveTo(java.util.Collection<? extends MObject> elements,
MObject to)
Move the given elements under another one.
|
void |
moveTo(java.util.Collection<? extends MObject> elements,
MObject to,
MObject oldParentHint)
Move the given elements under another one.
|
MObject clone(MObject element)
element - the element to clonejava.util.List<MObject> copyTo(java.util.Collection<? extends MObject> elements, MObject to)
elements - The elements to copy.to - The destination elementvoid moveTo(java.util.Collection<? extends MObject> elements, MObject to)
Warning: do not use for elements having several parents like constraint, has it is equivalent to moveTo(elements, to, null).
elements - The elements to copy.to - The destination elementvoid moveTo(java.util.Collection<? extends MObject> elements, MObject to, MObject oldParentHint)
elements - The elements to copy.to - The destination elementoldParentHint - the old parent to detach the elements from. Mandatory for elements having several parents (like Constraint), optional otherwise.