UML Modeling Layer

com.ibm.xtools.uml.msl.internal.providers.copypaste
Class MessagePasteOperation

java.lang.Object
  extended by org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardOperation
      extended by org.eclipse.gmf.runtime.emf.clipboard.core.BasePasteOperation
          extended by org.eclipse.gmf.runtime.emf.clipboard.core.PasteChildOperation
              extended by org.eclipse.gmf.runtime.emf.clipboard.core.OverridePasteChildOperation
                  extended by com.ibm.xtools.uml.msl.internal.providers.copypaste.MessagePasteOperation

public class MessagePasteOperation
extends OverridePasteChildOperation

Paste operation for Message


Field Summary
 
Fields inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.PasteChildOperation
COPY, EMPTY_ARRAY
 
Fields inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.BasePasteOperation
PASTE
 
Fields inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardOperation
TOTAL_WORK, WORK_UNIT
 
Constructor Summary
MessagePasteOperation(PasteChildOperation overriddenChildPasteOperation)
          Constructor
 
Method Summary
static Connector findMatchingConnectorFromInteraction(Interaction theInteraction, Lifeline srcLL, Lifeline tarLL)
          Test if existing connector in interaction is same as to be created connector
 EObject getParentEObject()
           
 PasteChildOperation getPostPasteOperation()
           
protected  boolean handleCollision(EReference reference, EObject object, EObject eObject, ObjectInfo eObjectInfo)
          always paste message
protected  boolean handleCollision(EReference reference, List list, EObject eObject, ObjectInfo eObjectInfo)
          always paste message
 void paste()
           
 
Methods inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.OverridePasteChildOperation
getOverriddenPasteChildOperation
 
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, getSuitableParentUsingAncestry, hasCopyParent, isAuxiliaryOperation, isCopyAlways, isCopyParentDirectParent, makeAuxiliaryChildPasteProcess, mergeEObjects, mergeLists, setPastedElement, shouldPasteAlwaysCopyObject
 
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 org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardOperation
catchException, getClipboardOperationHelper, getProgressMonitor, isCancelled, throwCancelException, throwException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePasteOperation

public MessagePasteOperation(PasteChildOperation overriddenChildPasteOperation)
Constructor

Parameters:
overriddenChildPasteOperation -
Method Detail

paste

public void paste()
           throws Exception
Overrides:
paste in class PasteChildOperation
Throws:
Exception

handleCollision

protected boolean handleCollision(EReference reference,
                                  EObject object,
                                  EObject eObject,
                                  ObjectInfo eObjectInfo)
always paste message

Overrides:
handleCollision in class PasteChildOperation
See Also:
PasteChildOperation.handleCollision(org.eclipse.emf.ecore.EReference, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject, org.eclipse.gmf.runtime.emf.clipboard.core.ObjectInfo)

handleCollision

protected boolean handleCollision(EReference reference,
                                  List list,
                                  EObject eObject,
                                  ObjectInfo eObjectInfo)
always paste message

Overrides:
handleCollision in class PasteChildOperation
See Also:
PasteChildOperation.handleCollision(org.eclipse.emf.ecore.EReference, java.util.List, org.eclipse.emf.ecore.EObject, org.eclipse.gmf.runtime.emf.clipboard.core.ObjectInfo)

getParentEObject

public EObject getParentEObject()
Overrides:
getParentEObject in class PasteChildOperation

getPostPasteOperation

public PasteChildOperation getPostPasteOperation()
Overrides:
getPostPasteOperation in class PasteChildOperation

findMatchingConnectorFromInteraction

public static Connector findMatchingConnectorFromInteraction(Interaction theInteraction,
                                                             Lifeline srcLL,
                                                             Lifeline tarLL)
Test if existing connector in interaction is same as to be created connector

Parameters:
theInteraction -
srcLL -
tarLL -
Returns:

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.