blob: bdb40e8b4406f26d588d25bd1e1e64f4e0fca915 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org" />
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<title>Clipboard Example</title>
</head>
<body>
<h2>Clipboard Example</h2>
<h3>Introduction</h3>
<p>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.</p>
<h3>Description</h3>
<p>This example plug-in is named
<code>org.eclipse.gmf.examples.runtime.emf.clipboard</code>. This
plug-in contributes the <b>Clipboard</b> menu to the library
editor's main menu and context menu. The menu has two actions:</p>
<ol>
<li><b>Copy:</b> Supports rich copy support for books and writers.
A writer's books are always copied when the writer is copied</li>
<li><b>Paste:</b> 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). <b>Undo/Redo</b>
support for the paste operation uses the EMF
<code>ChangeRecorder</code> API</li>
</ol>
<br />
<br />
<p>Please refer to the tutorial <a
href="../../tutorials/msl/clipboardTutorial.html">Clipboard
Tutorial</a> for reviewing the code samples within this example</p>
<img src="./clipboard.GIF" alt="Clipboard Example Contributions" />
<h3>Usage</h3>
<p>Refer to this example if you need:</p>
<ol>
<li>To implement fairly complex meta-model specific semantics for
copy/paste operations, where some relationships between model
elements need special treatment</li>
</ol>
<br />
<br />
<br />
<br />
<hr />
<p><a href="http://www.eclipse.org/legal/epl-v10.html">Copyright
(c) 2000,2005 IBM Corporation and others. All Rights
Reserved.</a></p>
<br />
<br />
</body>
</html>