|
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.CopyOperation
public class CopyOperation
The default copy operation. Extensibility is provided by the callback
methods of the IClipboardSupport
implementation for the specific
EMF metamodel.
Note that this class is not intended to be extended "directly"
by clients. Clients may not instantiate it. Clients that need to extend
or override this default copy operation should extend the
OverrideCopyOperation
class, instead.
OverrideCopyOperation
Field Summary | |
---|---|
static java.lang.String |
COPY
String constant for the value "copy". |
Fields inherited from class org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardOperation |
---|
TOTAL_WORK, WORK_UNIT |
Constructor Summary | |
---|---|
CopyOperation(IProgressMonitor monitor,
IClipboardSupport clipboardSupport,
java.util.Collection eObjects,
java.util.Map hintMap)
Initializes me. |
Method Summary | |
---|---|
java.lang.String |
copy()
Performs the copy operation. |
protected java.lang.String |
doCopy()
|
protected CopyObjects |
getAuxiliaryObjects()
|
java.util.Set |
getCombinedCopyAlwaysSet()
Obtains my complete set of objects that must always be copied, that are related to the original selection but not of it. |
protected java.util.Collection |
getEObjects()
|
protected java.util.Map |
getEObjectsHintMap()
Obtains my hint map. |
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 |
Field Detail |
---|
public static final java.lang.String COPY
Constructor Detail |
---|
public CopyOperation(IProgressMonitor monitor, IClipboardSupport clipboardSupport, java.util.Collection eObjects, java.util.Map hintMap)
monitor
- the optional progress monitor (can be null
)clipboardSupport
- the clipboard support for the EMF metamodeleObjects
- the EObject
s to copyhintMap
- the map of copy hints, possibly empty. Hints are defined
by the ClipboardUtil
classClipboardUtil.RECYCLE_HINT_ID
,
ClipboardUtil.IGNORE_RECYCLE_HINT_ID
Method Detail |
---|
protected java.util.Map getEObjectsHintMap()
public java.lang.String copy() throws java.lang.Exception
java.lang.Exception
- if anything goes wrong in performing the copyprotected java.lang.String doCopy() throws java.lang.Exception
java.lang.Exception
public java.util.Set getCombinedCopyAlwaysSet()
protected CopyObjects getAuxiliaryObjects()
protected java.util.Collection getEObjects()
|
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.