Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to save model file using xmi?
how to save model file using xmi? [message #635306] Tue, 26 October 2010 07:08 Go to previous message
popjxc is currently offline popjxc
Messages: 36
Registered: March 2010
Member
Hi all,

I use gmf generate a editor, and save graphics and model in two different files.

in my model file, it use xsi like the following:

<?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 from="_tsqBwODtEd-r576wsnzzcA" to="_t1tQEODtEd-r576wsnzzcA" id="_uHgxwODtEd-r576wsnzzcA" type="transition"/>
  <nodes xsi:type="model:SQL" name="SQL" targets="_uHgxwODtEd-r576wsnzzcA" id="_tsqBwODtEd-r576wsnzzcA"/>
  <nodes xsi:type="model:File" name="File" sources="_uHgxwODtEd-r576wsnzzcA" id="_t1tQEODtEd-r576wsnzzcA"/>
</model:Diagram>


But I saw the saved file of the eclipse bpmn, in the model file it use xmi, like the following:
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:BpmnDiagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:bpmn="http://stp.eclipse.org/bpmn" xmi:id="_6m9gIdK3Ed-akOyjfwNYew" iD="_6m9gINK3Ed-akOyjfwNYew">
  <artifacts xmi:type="bpmn:DataObject" xmi:id="_Rsf9UdTyEd-W5N3rDCZOsQ" iD="_Rsf9UNTyEd-W5N3rDCZOsQ">
    <associations xmi:type="bpmn:Association" xmi:id="_RtifINTyEd-W5N3rDCZOsQ"/>
  </artifacts>
  <pools xmi:type="bpmn:Pool" xmi:id="_6nQbEdK3Ed-akOyjfwNYew" iD="_6nQbENK3Ed-akOyjfwNYew" associations="_RtifINTyEd-W5N3rDCZOsQ" name="Pool">
    <vertices xmi:type="bpmn:Activity" xmi:id="_6clugeDhEd-Q7Yw7T3vQ_w" iD="_6clugODhEd-Q7Yw7T3vQ_w" activityType="Task" looping="true"/>
  </pools>
</bpmn:BpmnDiagram>


So, how can I change my 'xsi:type' to 'xmi:type', and add 'xmi:id' ?

Thanks very much!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Cut, Copy, Paste EditPart: how to inhibit?
Next Topic:Custom behaviour for starting a swing application
Goto Forum:
  


Current Time: Tue May 21 11:39:47 EDT 2013

Powered by FUDForum. Page generated in 0.01657 seconds