Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF 2.3.0 copy and paste problem
GMF 2.3.0 copy and paste problem [message #629687] Wed, 29 September 2010 09:09 Go to next message
popjxc is currently offline popjxcFriend
Messages: 36
Registered: March 2010
Member
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]

Report message to a moderator

Re: GMF 2.3.0 copy and paste problem [message #629930 is a reply to message #629687] Thu, 30 September 2010 02:10 Go to previous message
popjxc is currently offline popjxcFriend
Messages: 36
Registered: March 2010
Member
I found the ecore diagram editor has the same problem....
Previous Topic:workspace management in RCP mode - Resource plugin starts too early
Next Topic:GMF Partitioning
Goto Forum:
  


Current Time: Thu Apr 25 16:21:38 GMT 2024

Powered by FUDForum. Page generated in 0.04026 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top