Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:55 Go to next message
Eclipse User is currently offline Eclipse UserFriend
Messages: 34
Registered: July 2010
Member
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 08:43 Go to previous messageGo to next message
hedi  is currently offline hedi Friend
Messages: 2
Registered: May 2011
Junior Member
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 08:44]

Report message to a moderator

Re: [ZEST] Delete the graph to draw another one [message #673840 is a reply to message #673321] Tue, 24 May 2011 22:51 Go to previous message
Fabian Steeg is currently offline Fabian SteegFriend
Messages: 76
Registered: July 2009
Member
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: Thu Apr 25 11:28:08 GMT 2024

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

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

Back to the top