dvdkruk / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Copy-Paste Feature Not Working #311

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I am trying the Busmod example based on the Spray 0.5 tutorial. I would 
like to copy and paste model elements onto the editor, but the 'Copy' command 
is disabled. Steps to reproduce:

- Create a Busmod editor
- Add a BusinessClass
- Right-click BusinessClass to get context-menu

The implementation of '...CopyFeatureBase.java' seems alright based on the 
Graphiti tutorial for copy-paste. So, what could be the problem?

Thanks a lot!

Original issue reported on code.google.com by lieri.Fa...@gmail.com on 10 Nov 2013 at 10:26

GoogleCodeExporter commented 8 years ago
The problem is, that the current generation of the copy feature assumes that 
the domain model element mapped to Diagram is a super class of all other domain 
model elements used in the other mappings. Thus e.g. the copy feature in the 
LWC example works as there this structure has been used.

In the Busmode example BusinessDomainModel is not a super class of 
BusinessClass therefore the copy feature doesn't work here.

I will change the generation so that there several instance of checks will be 
performed (or I just check the package).

Original comment by de.abg.r...@gmail.com on 11 Nov 2013 at 7:14

GoogleCodeExporter commented 8 years ago
Maybe it is not a idea to enable copy feature by default (deep copy issue):
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fres
ources%2Fdocu%2Fgfw%2Fcopy-and-paste-feature.htm

Original comment by de.abg.r...@gmail.com on 11 Nov 2013 at 7:25