Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GMF Guide
Previous Page Home Next Page

Clipboard Support

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

Since:
7.0

Description:
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.

Configuration Markup:

<!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.


  • nsURI - Namespace URI identifying the EPackage for which the extension provides an IClipboardSupportFactory implementation. The EPackage represents an EMF metamodel.
  • class - Fully-qualified name of a class implementing the IClipboardSupportFactory interface. This class will only be loaded and instantiated when needed to copy an EMF object to the clipboard or when pasting from the clipboard.
  • priority - Indicates the priority relative to other factories registered for the same metamodel. The default is medium. This attribute is deprecated; a new context-based approach will be devised soon.

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

   <extension
         point=
"org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport"
>
      <factory
            nsURI=
"https:///org/eclipse/emf/examples/library.ecore"

            class=
"com.example.emf.library.clipboard.LibraryClipboardSupportFactory"
>
      </factory>
   </extension>


Copyright (c) 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire