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
Answertopia.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 Example

Introduction

This example describes the usage of the clipboard framework within the SDK. It demonstrates how to copy and paste library model elements to and from the system clipboard respectively.

Description

This example plug-in is named org.eclipse.gmf.examples.runtime.emf.clipboard. This plug-in contributes the Clipboard menu to the library editor's main menu and context menu. The menu has two actions:

  1. Copy: Supports rich copy support for books and writers. A writer's books are always copied when the writer is copied
  2. Paste: Pasting a writer into a library that already has a writer of the same name merges the pasted writer into the existing one (most notably, adding to its books). Undo/Redo support for the paste operation uses the EMF ChangeRecorder API


Please refer to the tutorial ClipboardTutorial for reviewing the code samples within this example

Clipboard Example Contributions

Usage

Refer to this example if you need:

  1. To implement fairly complex meta-model specific semantics for copy/paste operations, where some relationships between model elements need special treatment





Copyright (c) 2000,2005 IBM Corporation and others. All Rights Reserved.




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