Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » (no subject)
(no subject) [message #673134] Sun, 22 May 2011 13:55 Go to next message
Eclipse UserFriend
Originally posted by: <forums-noreply

Hi !

I'm working on an eclipse plugin that draws the graph of the methods in a java project and that gives me the dependency between the dfifferent methods in my project.
The graph is displayed in a view and to draw it I've added a button on my toolbar. The problem is that whene clicking on the button to draw another graph after changing the code in my java project the first graph isn't deleted so I get 2 graphs.

I don't know if there is a method that allows to delete the nodes and the connections in ZEST or if there is a methode to refresh my view every time I want to display another graph.

Can you please give me some ideas to solve this problem and thank you so much in advance
Re: (no subject) [message #675112 is a reply to message #673134] Mon, 30 May 2011 10:44 Go to previous message
Rinku  is currently offline Rinku Friend
Messages: 2
Registered: May 2011
Junior Member
Follow the Zest and JFace Example on www.vogella.de/articles/EclipseZest/article.html. Each time you want to refresh the graph, you just have to invoke setInput(), setLabelProvider(), setContentProvider() with the new dataset. It takes care of regenerating the graph with the latest dataset.
Previous Topic:Display of ColorPropertyDescriptor in properties view
Next Topic:ZEST Customize width & height of nodes when using GraphViewer
Goto Forum:
  


Current Time: Thu Apr 25 02:17:21 GMT 2024

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

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

Back to the top