Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Reading diagram informations using GMF API
Reading diagram informations using GMF API [message #121113] Mon, 23 April 2007 03:04
Eclipse UserFriend
Originally posted by: philippeweber57.yahoo.fr

Hi,

I'm discovering UML2Tools, created with GMF if I'm not misunderstanding.
As I didn't have any reply on UML2Tools newsgroup, I come to you.

I want to read a saved diagram file (example.umlclass_diagram) in
Java/Eclipse3.3M6. I'm using the interfaces (Diagram,Node,Edge) from
org.eclipse.gmf.runtime.notation and it goes pretty well.
But when reading LayoutConstraints on a node that is a UML Class the
getHeight() and getWidth() methods return always -1 and not the value
from the XMI file.
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_oVeGZe5KEdu4M7x4CSjD-A" x="72" y="108" width="169" height="181"/>

On the other hand, getX and getY methods are OK.
I don't know if the problem come from gmf or uml2tools or from me ;) .

Any idea ?

Thanks
Philippe
Previous Topic:Stable Build: 2.0M6a
Next Topic:Textual Modelling inside GMF
Goto Forum:
  


Current Time: Thu May 08 21:31:47 EDT 2025

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

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

Back to the top