[zest] View fails to update graph after subsequent calls to setInput [closed] [message #539985] |
Mon, 14 June 2010 14:08 |
cefdemetser Messages: 8 Registered: June 2010 |
Junior Member |
|
|
Dear,
I'm using the Zest GraphViewer as a component in an eclipse View. I want to dynamically change the ContentProvider (IGraphEntityContentProvider) and content of the GraphViewer, by calling:
viewer.setContentProvider(provider);
viewer.setInput(providerDefinition.read(file));
The first time this code is called, all works well. However, subsequent calls leave me with an empty view, although a manual call to 'getElements' of the provider is not empty. I tried different redraw/refresh/update strategies, but nothing seems to work.
The bottom line is, how do I force the viewer to update the UI as to show the new graph?
Thanks.
[Updated on: Tue, 15 June 2010 11:52] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02410 seconds