Bug 138255 - [CopyPaste] Support heterogeneous selections in copy/paste framework
Summary: [CopyPaste] Support heterogeneous selections in copy/paste framework
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P3 enhancement
Target Milestone: 2.1   Edit
Assignee: Anthony Hunter CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-24 15:31 EDT by Christian Damus CLA
Modified: 2010-07-19 12:24 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2006-04-24 15:31:27 EDT
Currently, the copy/paste framework (org.eclipse.gmf.runtime.emf.clipboard.core) only supports copying and pasting a selection of elements of a single metamodel, because both the copy and paste operations use a single IClipboardSupport instance.

Heterogeneous selections should also be supported, using an IClipboardSupport for each metamodel represented in the selection.  It may be necessary, where there are dependencies between metamodels, to allow IClipboardSupport providers to negotiate to take over responsibility for another metamodel in heterogeneous selections, where otherwise a different IClipboardSupport would be used.

A case in point is copy/paste of notation views in a GMF diagram, which also includes an EAnnotation indicating the measurement unit of the selection.  The EAnnotation is defined by  a different metamodel than Notation (namely, Ecore), and so may have its own IClipboardSupport defined.  However, given that Notation extends Ecore, it would be appropriate for only the Notation provider to be used in diagram selections.
Comment 1 Eclipse Webmaster CLA 2010-07-19 12:24:58 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime EMF was the original product and component for this bug