GMF 2.3.0 copy and paste problem [message #629687] |
Wed, 29 September 2010 09:09  |
Eclipse User |
|
|
|
hello , everyone:
I use gmf generate a editor, and I need to save model and diagram in two files.
Now the editor's copy and paste could not work. I found there are many issues about copy & paste, but I can't find my way out.
In my situation, I can copy and paste on the diagram, but when save, close and reopen the editor, the paste result lost, and the editor in dirty status.
I have override the useUUIDs() method in ModelResourceImpl , and make it return true.
The following xml is the model file, Does anybody know where is the problem? Thanks~
The model file:
<?xml version="1.0" encoding="UTF-8"?>
<model:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:model="http://model/1.0" name="Diagram">
<transitions name="Ok" id="12bb894e_c924_462c_a24c_46d41c1e0962" type="Component Ok"/>
<transitions name="Ok" from="//@nodes.0" to="//@nodes.1" id="20efaf2a_0374_4299_94de_32d3ddd1f90a" type="Ok"/>
<nodes xsi:type="model:Database" name="Database" targets="//@transitions.1" id="39e7b193_7587_4c56_ae30_6d2f752148cd"/>
<nodes xsi:type="model:Database" name="Database" sources="//@transitions.1" id="97d3129a_c9da_4b72_a86e_b4bcbc665757"/>
</model:Diagram>
[Updated on: Wed, 29 September 2010 09:29] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.05374 seconds