|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.PostPasteChildOperation
public class PostPasteChildOperation
Abstract definition of an
IClipboardSupport
-defined
operation that follows the pasting of a child element into the target parent,
to perform additional work. Post paste operations are created by
the getPostPasteOperation()
method of OverridePasteChildOperation
s.
This class is intended to be extended by clients, to provide an auxiliary paste operation in the clipboard support.
IClipboardSupport.getOverrideChildPasteOperation(PasteChildOperation)
,
PasteChildOperation.getPostPasteOperation()
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 | |
---|---|
PostPasteChildOperation(PasteChildOperation pasteChildOperation,
java.util.List pasteOperations)
Initializes me with the paste operation that I am following. |
|
PostPasteChildOperation(PasteChildOperation pasteChildOperation,
PasteChildOperation[] pasteOperations)
Initializes me with the paste operation that I am following. |
Method Summary | |
---|---|
protected PasteChildOperation |
getPasteChildOperation()
Obtains the paste operation that I follow as a post-paste. |
protected PasteChildOperation[] |
getPasteOperations()
Obtains the paste operations that I execute when I am executed. |
PasteChildOperation |
getPostPasteOperation()
By default, returns another post-paste operation that executes the post-paste operations of all of my additional paste operations. |
static PostPasteChildOperation |
makeNullPostPasteChildOperation(PasteChildOperation pasteChildOperation)
Creates an empty operation to follow the specified paste operation. |
void |
paste()
Invoked after the past-child operation that I am following has done its pasting, to do some more pasting. |
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 |
---|
public PostPasteChildOperation(PasteChildOperation pasteChildOperation, java.util.List pasteOperations)
pasteChildOperation
- the paste child operation that I followpasteOperations
- paste operations to execute. By default, I
will execute all of these operations first, then all of their
post-paste operations (after all of the pastes have completed)public PostPasteChildOperation(PasteChildOperation pasteChildOperation, PasteChildOperation[] pasteOperations)
pasteChildOperation
- the paste child operation that I followpasteOperations
- paste operations to execute. By default, I
will execute all of these operations first, then all of their
post-paste operations (after all of the pastes have completed)Method Detail |
---|
public static PostPasteChildOperation makeNullPostPasteChildOperation(PasteChildOperation pasteChildOperation)
pasteChildOperation
- a paste operation
public void paste() throws java.lang.Exception
By default, I just invoke the PasteChildOperation.paste()
method
on all of my additional paste
operations.
paste
in class PasteChildOperation
java.lang.Exception
- if anything goes wrong in pastinggetPasteOperations()
public PasteChildOperation getPostPasteOperation()
additional
paste operations.
getPostPasteOperation
in class PasteChildOperation
getPasteOperations()
protected PasteChildOperation getPasteChildOperation()
protected PasteChildOperation[] getPasteOperations()
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.