Andrey Razumovsky updated CAY-1080:
-----------------------------------
Attachment: 1080.zip
The patch contains implementation of the cut-copy-paste functionality. It uses system buffer, so copy-paste can be done through multiple CM apps.
Some of feature's advantages / limitations.
1. CM data can be pasted in two ways: back in CM (like Cayenne object) or in text box (in XML format).
2. Cut and Copy buttons work as 'Remove' button - tree objects are copied from main toolbar, attrs, rels etc. have their own buttons.
3. Paste button is active when 'parent' of object(s) in the buffer is selected. E.g. to paste a datamap you must select parent datadomain or datanode.
4. Following objects can be copied/pasted: DataMaps, Obj- and Db- entities, attrs, relations, queries, procedures, proc. parameters. That means, DataDomain and DataNode cannot be copied/pasted.
5. CCP of multiple objects is allowed. Still, in the tree, only objects on the same level (with same parent) can be copied.
6. CCP buttons are added in main menu, main toolbar, table panel toolbars, popup menus.
7. Standard hotkeys (like Ctrl+C Ctrl+V) do work, but note that if you try to copy/paste when table cell is edited, default copy/paste will be done (as text information).
8. When names do clash, they are automatically changed (like X -> Copy of X)
9. Icons are taken from Eclipse, like other CM icons.
10. Icons cannot be included in patch, so they are separated from txt patch file
> Support for copy/paste of entities/attributes/relationships
> -----------------------------------------------------------
>
> Key: CAY-1080
> URL: https://issues.apache.org/cayenne/browse/CAY-1080
> Project: Cayenne
> Issue Type: New Feature
> Components: CayenneModeler GUI
> Affects Versions: 3.0
> Reporter: Andrey Razumovsky
> Assignee: Andrus Adamchik
> Attachments: 1080.zip
>
>
> Support for copy/paste of entities/attributes/relationships.
> This is GSoC 2008 task.
> Some of my ideas follow.
> We can implement copy-paste in two ways.
> First: the buffer is valid only within a sole project. So when you open another project, copied data is lost.
> Second, the buffer is stored in whole modeler application, or even system buffer. This allows to copy data between different projects, but is more complex because we need to create shallow copies of entities, attrs etc. Personally I use only one cayenne.xml currently.
-- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
This archive was generated by hypermail 2.0.0 : Sun Aug 10 2008 - 12:55:36 EDT