|
 |
|
| |
Package org.eclipse.gmf.runtime.emf.clipboard.core
API for clipboard-oriented copy/paste services that are customizable for
metamodel-specific semantics.
See:
Description
|
Interface Summary
|
|
IClipboardSupport
|
An interface to be implemented by EMF metamodel providers to inject
metamodel-specific semantics into copy/paste operations. |
|
IClipboardSupportFactory
|
Interface for objects that can create
IClipboardSupports for
supporting clipboard copy/paste operations on EMF models. |
Package org.eclipse.gmf.runtime.emf.clipboard.core Description
API for clipboard-oriented copy/paste services that are customizable for
metamodel-specific semantics. For invocation of the copy/paste functionality,
see
ClipboardUtil.
Package Specification
The primary mechanism for customization of a meta-model's copy/paste requirements
is the
IClipboardSupport
interface. Where this interface is not sufficient to control copy/paste
behaviour, the specialization of the following classes is permitted to define
custom copy and paste operations:
-
OverrideCopyOperation:
for special copying behaviour. This class inherits a number of useful
operations from the
CopyOperation class to
find out about the objects that the user selected for copying, additional
objects required my the IClipboardSupport, and the
relationships between them. It also has methods for adding elements to be
copied
-
OverridePasteChildOperation:
for special pasting behaviour. This class inherits a wealth of useful
operations from the
PasteChildOperation class to
find out about the objects that the user selected for copying, additional
objects required my the IClipboardSupport, and the
relationships between them. It also has methods do find which elements have
failed to paste, to paste additional elements (including handling paste
collisions), etc.
-
See Also:
-
ClipboardUtil.copyElementsToString(java.util.Collection, java.util.Map, org.eclipse.core.runtime.IProgressMonitor),
ClipboardUtil.pasteElementsFromString(java.lang.String, org.eclipse.emf.ecore.EObject, java.util.Map, org.eclipse.core.runtime.IProgressMonitor),
ClipboardUtil.createClipboardSupport(org.eclipse.emf.ecore.EClass)
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.
|
|
|