Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » connections disappear on reopen
connections disappear on reopen [message #133517] Thu, 07 June 2007 03:37 Go to next message
Eclipse UserFriend
Originally posted by: hansboerstra.hotmail.com

Just ran the mindmap tutorial Part 2 using Eclipse 3.3.0 with Build id:
I20070601-1539 and GMF 2.0RC2 and everything looks fine untill I save and
reopen the diagram. The RelationShip connections are all gone from the
diagram and the diagram editor immediately gets dirty. The edges element was
there in the XMI after the first save, but if I reopen and save again it is
gone.
Below are my simple domain and diagram files. Does anybody else see this
behaviour too with RC2 when opening the diagram?

Regards,

Hans

<?xml version="1.0" encoding="UTF-8"?>
<mindmap:map xmlns:mindmap="http://www.example.org/mindmap">
<rootTopics name="T1"/>
<rootTopics name="T2"/>
<relations label="depends" source="#//@map/@rootTopics.0"
target="#//@map/@rootTopics.1" type="DEPENDENCY"/>
</mindmap:map>


<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:mindmap="http://www.example.org/mindmap"
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation"
xmi:id="_yC374BTCEdyokddwUH6mnw" type="Mindmap"
name="default2.mindmap_diagram" measurementUnit="Pixel">
<children xmi:type="notation:Node" xmi:id="_zU6ykBTCEdyokddwUH6mnw"
type="1001">
<children xmi:type="notation:Node" xmi:id="_zU6ykxTCEdyokddwUH6mnw"
type="4002"/>
<children xmi:type="notation:Node" xmi:id="_zU6ylBTCEdyokddwUH6mnw"
type="5001">
<styles xmi:type="notation:DrawerStyle"
xmi:id="_zU6ylRTCEdyokddwUH6mnw"/>
<styles xmi:type="notation:SortingStyle"
xmi:id="_zU6ylhTCEdyokddwUH6mnw"/>
<styles xmi:type="notation:FilteringStyle"
xmi:id="_zU6ylxTCEdyokddwUH6mnw"/>
</children>
<styles xmi:type="notation:ShapeStyle"
xmi:id="_zU6ykRTCEdyokddwUH6mnw"/>
<element xmi:type="mindmap:Topic"
href="default2.mindmap#//@map/@rootTopics.0"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_zU6ykhTCEdyokddwUH6mnw" x="280" y="127"/>
</children>
<children xmi:type="notation:Node" xmi:id="_0fnEEBTCEdyokddwUH6mnw"
type="1001">
<children xmi:type="notation:Node" xmi:id="_0fnEExTCEdyokddwUH6mnw"
type="4002"/>
<children xmi:type="notation:Node" xmi:id="_0fnEFBTCEdyokddwUH6mnw"
type="5001">
<styles xmi:type="notation:DrawerStyle"
xmi:id="_0fnEFRTCEdyokddwUH6mnw"/>
<styles xmi:type="notation:SortingStyle"
xmi:id="_0fnEFhTCEdyokddwUH6mnw"/>
<styles xmi:type="notation:FilteringStyle"
xmi:id="_0fnEFxTCEdyokddwUH6mnw"/>
</children>
<styles xmi:type="notation:ShapeStyle"
xmi:id="_0fnEERTCEdyokddwUH6mnw"/>
<element xmi:type="mindmap:Topic"
href="default2.mindmap#//@map/@rootTopics.1"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_0fnEEhTCEdyokddwUH6mnw" x="470" y="181"/>
</children>
<styles xmi:type="notation:DiagramStyle"
xmi:id="_yC374RTCEdyokddwUH6mnw"/>
<element xmi:type="mindmap:Map" href="default2.mindmap#//@map"/>
<edges xmi:type="notation:Edge" xmi:id="_2mxk4BTCEdyokddwUH6mnw"
type="3004" source="_zU6ykBTCEdyokddwUH6mnw"
target="_0fnEEBTCEdyokddwUH6mnw">
<children xmi:type="notation:Node" xmi:id="_2mxk5BTCEdyokddwUH6mnw"
type="4005">
<layoutConstraint xmi:type="notation:Location"
xmi:id="_2mxk5RTCEdyokddwUH6mnw" y="40"/>
</children>
<styles xmi:type="notation:ConnectorStyle"
xmi:id="_2mxk4RTCEdyokddwUH6mnw"/>
<styles xmi:type="notation:FontStyle" xmi:id="_2mxk4hTCEdyokddwUH6mnw"/>
<element xmi:type="mindmap:Relationship"
href="default2.mindmap#//@map/@relations.0"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_2mxk4xTCEdyokddwUH6mnw" points="[17, 5, -170, -60]$[189, 45,
2, -20]"/>
<sourceAnchor xmi:type="notation:IdentityAnchor"
xmi:id="_2nQGABTCEdyokddwUH6mnw" id="(0.575,0.225)"/>
</edges>
</notation:Diagram>
Re: connections disappear on reopen [message #133530 is a reply to message #133517] Thu, 07 June 2007 03:55 Go to previous message
Eclipse UserFriend
Originally posted by: hansboerstra.hotmail.com

That was quick! The problem was fixed in the GMF 2.0RC2 build of 20070605
while I previously used the on at 20070601.

Sorry for not staying on the bleeding edge ;-)

Hans

"Hans Boerstra" <hansboerstra@hotmail.com> wrote in message
news:f48cjv$56v$1@build.eclipse.org...
> Just ran the mindmap tutorial Part 2 using Eclipse 3.3.0 with Build id:
> I20070601-1539 and GMF 2.0RC2 and everything looks fine untill I save and
> reopen the diagram. The RelationShip connections are all gone from the
> diagram and the diagram editor immediately gets dirty. The edges element
> was there in the XMI after the first save, but if I reopen and save again
> it is gone.
> Below are my simple domain and diagram files. Does anybody else see this
> behaviour too with RC2 when opening the diagram?
>
> Regards,
>
> Hans
>
> <?xml version="1.0" encoding="UTF-8"?>
> <mindmap:map xmlns:mindmap="http://www.example.org/mindmap">
> <rootTopics name="T1"/>
> <rootTopics name="T2"/>
> <relations label="depends" source="#//@map/@rootTopics.0"
> target="#//@map/@rootTopics.1" type="DEPENDENCY"/>
> </mindmap:map>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:mindmap="http://www.example.org/mindmap"
> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.1/notation"
> xmi:id="_yC374BTCEdyokddwUH6mnw" type="Mindmap"
> name="default2.mindmap_diagram" measurementUnit="Pixel">
> <children xmi:type="notation:Node" xmi:id="_zU6ykBTCEdyokddwUH6mnw"
> type="1001">
> <children xmi:type="notation:Node" xmi:id="_zU6ykxTCEdyokddwUH6mnw"
> type="4002"/>
> <children xmi:type="notation:Node" xmi:id="_zU6ylBTCEdyokddwUH6mnw"
> type="5001">
> <styles xmi:type="notation:DrawerStyle"
> xmi:id="_zU6ylRTCEdyokddwUH6mnw"/>
> <styles xmi:type="notation:SortingStyle"
> xmi:id="_zU6ylhTCEdyokddwUH6mnw"/>
> <styles xmi:type="notation:FilteringStyle"
> xmi:id="_zU6ylxTCEdyokddwUH6mnw"/>
> </children>
> <styles xmi:type="notation:ShapeStyle"
> xmi:id="_zU6ykRTCEdyokddwUH6mnw"/>
> <element xmi:type="mindmap:Topic"
> href="default2.mindmap#//@map/@rootTopics.0"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_zU6ykhTCEdyokddwUH6mnw" x="280" y="127"/>
> </children>
> <children xmi:type="notation:Node" xmi:id="_0fnEEBTCEdyokddwUH6mnw"
> type="1001">
> <children xmi:type="notation:Node" xmi:id="_0fnEExTCEdyokddwUH6mnw"
> type="4002"/>
> <children xmi:type="notation:Node" xmi:id="_0fnEFBTCEdyokddwUH6mnw"
> type="5001">
> <styles xmi:type="notation:DrawerStyle"
> xmi:id="_0fnEFRTCEdyokddwUH6mnw"/>
> <styles xmi:type="notation:SortingStyle"
> xmi:id="_0fnEFhTCEdyokddwUH6mnw"/>
> <styles xmi:type="notation:FilteringStyle"
> xmi:id="_0fnEFxTCEdyokddwUH6mnw"/>
> </children>
> <styles xmi:type="notation:ShapeStyle"
> xmi:id="_0fnEERTCEdyokddwUH6mnw"/>
> <element xmi:type="mindmap:Topic"
> href="default2.mindmap#//@map/@rootTopics.1"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_0fnEEhTCEdyokddwUH6mnw" x="470" y="181"/>
> </children>
> <styles xmi:type="notation:DiagramStyle"
> xmi:id="_yC374RTCEdyokddwUH6mnw"/>
> <element xmi:type="mindmap:Map" href="default2.mindmap#//@map"/>
> <edges xmi:type="notation:Edge" xmi:id="_2mxk4BTCEdyokddwUH6mnw"
> type="3004" source="_zU6ykBTCEdyokddwUH6mnw"
> target="_0fnEEBTCEdyokddwUH6mnw">
> <children xmi:type="notation:Node" xmi:id="_2mxk5BTCEdyokddwUH6mnw"
> type="4005">
> <layoutConstraint xmi:type="notation:Location"
> xmi:id="_2mxk5RTCEdyokddwUH6mnw" y="40"/>
> </children>
> <styles xmi:type="notation:ConnectorStyle"
> xmi:id="_2mxk4RTCEdyokddwUH6mnw"/>
> <styles xmi:type="notation:FontStyle"
> xmi:id="_2mxk4hTCEdyokddwUH6mnw"/>
> <element xmi:type="mindmap:Relationship"
> href="default2.mindmap#//@map/@relations.0"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_2mxk4xTCEdyokddwUH6mnw" points="[17, 5, -170, -60]$[189, 45,
> 2, -20]"/>
> <sourceAnchor xmi:type="notation:IdentityAnchor"
> xmi:id="_2nQGABTCEdyokddwUH6mnw" id="(0.575,0.225)"/>
> </edges>
> </notation:Diagram>
>
>
Previous Topic:Copy element from one to another diagram problems ...
Next Topic:Creation of generator model failed
Goto Forum:
  


Current Time: Sat Jul 19 18:23:10 EDT 2025

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

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

Back to the top