com.ibm.xtools.uml.msl.internal.providers.copypaste
Class LifelinePasteOperation
java.lang.Object
org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardOperation
org.eclipse.gmf.runtime.emf.clipboard.core.BasePasteOperation
org.eclipse.gmf.runtime.emf.clipboard.core.PasteChildOperation
org.eclipse.gmf.runtime.emf.clipboard.core.OverridePasteChildOperation
com.ibm.xtools.uml.msl.internal.providers.copypaste.LifelinePasteOperation
public class LifelinePasteOperation
- extends OverridePasteChildOperation
paste operation for lifeline
| Methods inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.PasteChildOperation |
canBeReplaced, doPasteInto, doPasteInto, doPasteInto, doPasteInto, getAlwaysCopyObjectPasteOperations, getAuxiliaryChildPasteProcess, getChildObjectInfo, getContainmentFeature, getCopyParentEObject, getCopyParentObjectInfo, getEObject, getEObject, getEObjectID, getLoadedDirectContainerEObject, getLoadedEObject, getLoadedEObjectID, getMainChildPasteProcess, getParentPasteProcess, getParentResource, getParentTarget, getPasteContainmentFeature, getPastedDirectCopyParent, getPastedElement, getPastedEObject, getPostPasteOperation, getSuitableParentUsingAncestry, hasCopyParent, isAuxiliaryOperation, isCopyAlways, isCopyParentDirectParent, makeAuxiliaryChildPasteProcess, mergeEObjects, mergeLists, setPastedElement |
| Methods inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.BasePasteOperation |
addCriticalResolveFailure, addMergedElementEntry, addPastedElement, addPasteFailuresObject, getAllCriticalResolveFailuresSet, getAllMergedElementsMap, getAllPastedElementSet, getAllPasteFailuresObjectSet, getCriticalResolveFailuresSet, getLoadOptionsMap, getMergedElementsMap, getPastedElementSet, getPasteFailuresObjectSet, getResourceInfo, getSpawningPasteOperation, removeCriticalResolveFailure, throwCancelException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REUSE_EXISTING_LIFELINE
public static final String REUSE_EXISTING_LIFELINE
- flag indicating whether to reuse existing lifeline
- See Also:
- Constant Field Values
LifelinePasteOperation
public LifelinePasteOperation(PasteChildOperation overriddenChildPasteOperation)
- Constructor
- Parameters:
overriddenChildPasteOperation -
paste
public void paste()
throws Exception
- Overrides:
paste in class PasteChildOperation
- Throws:
Exception
hasNameCollision
public static boolean hasNameCollision(EObject eObject1,
EObject eObject2)
- test if the given two lifelines are in conflict. They are in conflict only if
they have same name and same type
- Parameters:
eObject1 - eObject2 -
- Returns:
shouldPasteAlwaysCopyObject
protected boolean shouldPasteAlwaysCopyObject(ObjectInfo alwaysCopyObjectInfo)
- Overrides:
shouldPasteAlwaysCopyObject in class PasteChildOperation
getParentEObject
public EObject getParentEObject()
- Overrides:
getParentEObject in class PasteChildOperation
handleCollision
protected boolean handleCollision(EReference reference,
List list,
EObject eObject,
ObjectInfo eObjectInfo)
- Overrides:
handleCollision in class PasteChildOperation
handleCollision
protected boolean handleCollision(EReference reference,
EObject object,
EObject eObject,
ObjectInfo eObjectInfo)
- Overrides:
handleCollision in class PasteChildOperation
© Copyright IBM Corp. 2009. All rights reserved.