Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem with interpretation of XML representation of diagram layout(how to use the attributes (bendpoints/points, targetAnchor/id, targetAnchor/id) to redraw the connections)
Problem with interpretation of XML representation of diagram layout [message #1714759] Mon, 16 November 2015 12:53 Go to next message
nana eb is currently offline nana ebFriend
Messages: 4
Registered: November 2015
Junior Member
hey everbody,

after i draw a diagram with my own generated GMF-Editor (see Attachement1), i need to redraw it in another GUI. For that i'm using the XML file of the diagram, and i don't know how to use the XML information to redraw a connection in a right way.




Does anyone know how i can use the three values under the nodes "Edges":

1. bendpoints/points
2. sourceAnchor/id
3. targetAnchor/id

to draw a connection (or get the real bendpoints of a connection).






when i only use the attribute bendpoints/points, i get this (see Attatchment2) and as we see, most of the connections are not on the right place.

and i realized that the attributes sourceAnchor/id and targetAnchor/id are missing at some "edges" nodes (see attached XML file).

please, i really need help, any comment could be helpful.

thanks in advance ..

Nana

index.php/fa/23961/0/
index.php/fa/23962/0/
  • Attachment: Attachment1.png
    (Size: 15.31KB, Downloaded 217 times)
  • Attachment: Attachment2.png
    (Size: 16.20KB, Downloaded 224 times)
  • Attachment: XML.xml
    (Size: 13.18KB, Downloaded 64 times)
Re: Problem with interpretation of XML representation of diagram layout [message #1715019 is a reply to message #1714759] Wed, 18 November 2015 14:19 Go to previous messageGo to next message
nana eb is currently offline nana ebFriend
Messages: 4
Registered: November 2015
Junior Member
anyone there who could help please :'(
Re: Problem with interpretation of XML representation of diagram layout [message #1718728 is a reply to message #1715019] Tue, 29 December 2015 13:51 Go to previous messageGo to next message
Fran Jimenez is currently offline Fran JimenezFriend
Messages: 2
Registered: December 2015
Junior Member
Hi, did you solve the problem?

I'm in the same situation. I'd like to get coordinates from bendpoints in a (x,y) way. How do you translate from bendpoints to coordinates?

Thanks
Re: Problem with interpretation of XML representation of diagram layout [message #1719003 is a reply to message #1718728] Mon, 04 January 2016 11:59 Go to previous message
nana eb is currently offline nana ebFriend
Messages: 4
Registered: November 2015
Junior Member
Hey, i did not solve the problem.

this problem is related to GMF, the values in the xml file are not correct.

Wlc
Previous Topic:GMF integrating with MultiPageEditorPart?
Next Topic:Did anyone met crash issue with SVG? How to solve?
Goto Forum:
  


Current Time: Mon Dec 11 05:58:27 GMT 2017

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

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