You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The editor needs to support copy and pasting of model elements.
There will be separate menu items for copying the model elements vs copying just the diagram element.
Copy (Model)
This will be the default copy. It will make a copy the diagram elements while making a copy of the underlying model elements.
Requirements
All objects must be EMF objects which are owned by a containing feature which may contain many values. This will results in not supporting copying generalizations and other objects.
None of the selected diagram elements are descendants of any others.
Copy Diagram Elements
This will be a separate menu item. It will copy just the diagram element and configuration.
Requirements:
Supports any diagram element.
All elements must have the same parent.
Paste
There will be a single paste menu item. The menu item will paste based on what was previously copied.
Paste Model
Validate that the copied objects can be created in the desired context. Containing feature must match and be changeable.
Generate unique names for pasted elements if they conflict with exist elements in the pasted context. If object is nameable, must pass validation and have a new name created.
Ensure packages are imported.
Ensure renames exist when pasting implementations.
Note: for this initial version, copying and pasting an implementation will result in a new implementation which is associated with the original type.
Paste Diagram Elements
Check that model elements exist with the matching relative reference.
If conflicting diagram elements exist, replace them with the pasted elements.
Saturday Aug 02, 2014 at 21:06 GMT
Originally opened as osate/osate-ge#15
Sometimes it is desirable to make a copy of a classifier with all its parts, e.g., a device type with all its ports.
The text was updated successfully, but these errors were encountered: