Reading diagram informations using GMF API [message #121113] |
Mon, 23 April 2007 03:04 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds