Clipboard Support

org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport

7.0

Providers of EMF meta-models can implement extensions on this point to provide support for copying EMF objects to and pasting them from the system clipboard. The clipboard support allows extensions to implement fairly complex metamodel-specific semantics for copy/paste operations, where some relationships between model elements need special treatment.

<!ELEMENT extension (factory+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT factory EMPTY>

<!ATTLIST factory

nsURI    CDATA #REQUIRED

class    CDATA #REQUIRED

priority (lowest|low|medium|high|highest) "medium">

Registers an implementation of the IClipboardSupportFactory interface that can create objects that provide metamodel-specific copy/paste semantics for EMF objects.



To register a clipboard support factory for the EMF Library example model:
   

<extension point=

"org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport"

>

<factory nsURI=

"http:///org/eclipse/emf/examples/library.ecore"

class=

"com.example.emf.library.clipboard.LibraryClipboardSupportFactory"

>

</factory>

</extension>

Classes registered on this extension point must implement the org.eclipse.gmf.runtime.emf.clipboard.core.IClipboardSupportFactory interface. A support factory is responsible for creating IClipboardSupports for the packages on which it is registered on this extension point.