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 Clipboard Tutorial 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.