Andrey Razumovsky commented on CAY-1080:
----------------------------------------
You said paste doesn't work with ObjEntities, does it mean you can copy-paste anything else?
Correct avaliable flavors for copied Cay object are:
[java.awt.datatransfer.DataFlavor[mimetype=application/x-java-serialized-object;representationclass=java.io.Serializable], java.awt.datatransfer.DataFlavor[mimetype=application/x-java-serialized-object;representationclass=java.lang.String]]
The first one is Cayenne flavor which enables paste button. I think IOException may be fine if flavor is not avaliable (however, I get "java.awt.datatransfer.UnsupportedFlavorException: Cayenne Object" in this case). That's why I let an exception be swallowed. So I think the problem is that content doesn't get into clipboard with Cayenne flavor (as java.io.Serializable). Could be that Mac doesn't support Serializable content, but I haven't found anything about that in Google.
With my lack of Mac I cannot debug this anyhow, so I can only confirm CCP works on Win and Linux. I'm afraid we'll have to leave this till later
> 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: Kevin Menard
> Attachments: 1080.zip, patch-CAY-1080-2.txt
>
>
> 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 : Wed Sep 24 2008 - 08:18:40 EDT