|Displaying Connections [message #1002768]
||Sat, 19 January 2013 06:01
| Tim E.
Registered: November 2012
I've got a problem with connections.
You should know:
-- I'm currently using GEF just as a visualization tool, for visualizing a model
-- the editing capabilities of GEF will be used later in the project
-- I've have to work with a model I'm not allowed to change
-- the model has no update/notification mechanism
-- no editing capabilities are required at the moment, except of moving the elements
of the diagram (if you like to call this editing)
-- no view information (positions, width, height, ...) is stored in the model, at all
At the moment I'm trying to add connections to my visualization.
Therefo some of the EditParts implement NodeEditPart and thus provide all information
for the connections. As far as I can see, the connections (its editparts) are created correctly.
Unfortunately, the connections are not shown in the editor.
I've read a lot about it and figured out that I have to call refreshSourceConnections(), and refreshTargetConnections().
But all the solutions I've found depend either on the notification of the view by the model, which I don't have.
Or depend on a creation command for connections, that I also don't have.
So is there a way to make my connection visible?
I'd appreciate your help.
Thanks in advance,
[Updated on: Sat, 19 January 2013 06:22]
Report message to a moderator