Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Initialize diagram file problems...
Initialize diagram file problems... [message #236047] Fri, 10 July 2009 16:44 Go to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------000806090407010507000700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm seeing the following:

When I initialize my diagram file from the model, I see my nodes and
connections and all is fine, but looking at the diagram file, I only
have the notation:Diagram, and after a restart of eclipse, the diagram
will open empty and not show anything until I drop a node, and save, and
only then I have children in the diagram file and it appears to open
correctly from then on.

Why would the initial initialize not persist the diagram children
information until the diagram is changed and saved?

I would appreciate any input.

diagram_no_children.diagram is the initial diagram created from the
wizard, no changes or saves, opens empty after eclipse restart...

diagram_children.diagram is file after a move and save...


Thanks
Brian Jakubik



--------------000806090407010507000700
Content-Type: text/xml;
name="diagram_no_children.diagram"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diagram_no_children.diagram"

<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:icxml="http://www.intervoice.com/icxml" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmi:id="_J_WzQG2SEd689cesHmWnFQ" type="Icxml" measurementUnit="Pixel">
<styles xmi:type="notation:DiagramStyle" xmi:id="_J_WzQW2SEd689cesHmWnFQ"/>
<element xmi:type="icxml:RootType" href="Voice.icxml#_92vGgW2PEd6LO_UAjYDA5A"/>
</notation:Diagram>

--------------000806090407010507000700
Content-Type: text/xml;
name="diagram_children.diagram"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="diagram_children.diagram"

<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:icxml="http://www.intervoice.com/icxml" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmi:id="_OAMn8G2REd689cesHmWnFQ" type="Icxml" measurementUnit="Pixel">
<children xmi:type="notation:Shape" xmi:id="_du7KoG2REd689cesHmWnFQ" type="2044" fontName="Microsoft Sans Serif">
<children xmi:type="notation:DecorationNode" xmi:id="_du7Kom2REd689cesHmWnFQ" type="5044">
<layoutConstraint xmi:type="notation:Location" xmi:id="_du7Ko22REd689cesHmWnFQ" y="5"/>
</children>
<element xmi:type="icxml:VoiceBegin" href="Voice.icxml#_93oeZG2PEd6LO_UAjYDA5A"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_du7KoW2REd689cesHmWnFQ" x="24" y="24" width="58" height="43"/>
</children>
<children xmi:type="notation:Shape" xmi:id="_du7KpG2REd689cesHmWnFQ" type="2045" fontName="Microsoft Sans Serif">
<children xmi:type="notation:DecorationNode" xmi:id="_du7Kpm2REd689cesHmWnFQ" type="5045">
<layoutConstraint xmi:type="notation:Location" xmi:id="_du7Kp22REd689cesHmWnFQ" y="5"/>
</children>
<element xmi:type="icxml:VoiceEnd" href="Voice.icxml#_93xoUG2PEd6LO_UAjYDA5A"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_du7KpW2REd689cesHmWnFQ" x="264" y="24" width="58" height="43"/>
</children>
<children xmi:type="notation:Shape" xmi:id="_du7KqG2REd689cesHmWnFQ" type="2001" fontName="Microsoft Sans Serif">
<children xmi:type="notation:DecorationNode" xmi:id="_du7Kqm2REd689cesHmWnFQ" type="5001">
<layoutConstraint xmi:type="notation:Location" xmi:id="_du7Kq22REd689cesHmWnFQ" y="5"/>
</children>
<element xmi:type="icxml:Calculate" href="Voice.icxml#_AijMgG2QEd6LO_UAjYDA5A"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_du7KqW2REd689cesHmWnFQ" x="144" y="24" width="58" height="43"/>
</children>
<styles xmi:type="notation:DiagramStyle" xmi:id="_OAMn8W2REd689cesHmWnFQ"/>
<element xmi:type="icxml:RootType" href="Voice.icxml#_92vGgW2PEd6LO_UAjYDA5A"/>
</notation:Diagram>

--------------000806090407010507000700--
Re: Initialize diagram file problems... [message #236461 is a reply to message #236047] Mon, 20 July 2009 07:27 Go to previous messageGo to next message
Eclipse UserFriend
Hello Brian,

> Why would the initial initialize not persist the diagram children
> information until the diagram is changed and saved?
It was done intentionally - diagram content should be re-created again by
the update procedd on next openning. You can modify something on a diagram
(move a node) to make everything persisted into the diagram file.

The problem with empty diagram on eclipse openning was introduced recently
by a constraints specified for ViewProvider. We have to modify these constraints
to correct this problem.
There is bugzilla entry for this task. M.b. we will fix this problem even
in 2.2.1 bugfix.

-----------------
Alex Shatalin
Re: Initialize diagram file problems... [message #503487 is a reply to message #236461] Mon, 14 December 2009 03:22 Go to previous message
Eclipse UserFriend
Alex Shatalin wrote:

> The problem with empty diagram on eclipse openning was introduced
> recently by a constraints specified for ViewProvider. We have to modify
> these constraints to correct this problem.
> There is bugzilla entry for this task. M.b. we will fix this problem
> even in 2.2.1 bugfix.

The entry mentioned by Alex seems to be https://bugs.eclipse.org/281014
--
Andreas
Previous Topic:Resource refactoring via LTK or any other mechanism?
Next Topic:[TENEO & GMF] problem in closeDataStore function
Goto Forum:
  


Current Time: Fri Jul 25 08:50:51 EDT 2025

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

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

Back to the top