|Asynchronous updates of Edges [message #1724340]
||Tue, 23 February 2016 09:27
| johan kuijpers
Registered: September 2009
I've create a JFace based ZestViewer based on domain objects for nodes and edges which are being displayed as expected. I'm using my own LabelProvider etc etc.|
What I fail to understand is how changes in the domain objects arriving asynchronously from a background thread are supposed to be visualized in the graph viewer.
I've studied the behavior framework and checked the post about dynamic graph attributes but these use-cases change visuals based on actions from within the gef4 framework.
The behavior monitors the various selection/content/hide models but I can't see a subscription mechanisme between the MVC (content) model and the JFace content provider.
The line above shows how domain objects delivered by the domain specific content provider is being used to populate the graph/viewer with nodes and edges. Once this is done it looks to me that changes in the domain objects can not be detected except for calling a complete refresh which causes also a layout.
Looking at how hiding works I've tried to add a complete set of 'EdgeStatusBehavior'/Operation/Policy to support edge status changes but now I can't traverse back to the domain objects because I only have references to the ContentModel etc. The obvious solution would be to introduce something like a EdgeStatusModel but this would result in duplication of state which I don't think is the way forward.
I'm a bit lost at present: Perhaps someone can push me in the right direction.
Thanks in advance.
[Updated on: Wed, 24 February 2016 07:23]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02027 seconds