Skip to main content



      Home
Home » Eclipse Projects » GEF » [ZEST] Delete the graph to draw another one
[ZEST] Delete the graph to draw another one [message #673088] Sun, 22 May 2011 09:55 Go to next message
Eclipse UserFriend
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: [ZEST] Delete the graph to draw another one [message #673321 is a reply to message #673088] Mon, 23 May 2011 04:43 Go to previous messageGo to next message
Eclipse UserFriend
try to see this post.
"http :// www.eclipse.org /forums /index. php/m/241456/"
if you dispose connections and nodes it should work
Razz

[Updated on: Mon, 23 May 2011 04:44] by Moderator

Re: [ZEST] Delete the graph to draw another one [message #673840 is a reply to message #673321] Tue, 24 May 2011 18:51 Go to previous message
Eclipse UserFriend
In Zest 2, you can call the Graph#clear() method. See http://wiki.eclipse.org/Zest#Zest_2.x for info on Zest 2.
Previous Topic:Best way to set a GEF editor to be read-only (uneditable, with limited interaction)
Next Topic:How can I modify the GEF shapes diagram editor example?
Goto Forum:
  


Current Time: Fri Apr 18 08:55:57 EDT 2025

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

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

Back to the top