Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Implement tree in gef
Implement tree in gef [message #218349] Fri, 23 June 2006 07:01 Go to next message
Eclipse UserFriend
Originally posted by: puneet82sri.sify.com

i need to know that can we implement a tree of figures
in gef ? which can expand and collapse like a tree control does.
i tried by using draw2d figures and path between them , but in case of large tree items like more than 5000, the expand/collapse functionality becomes very slow as we need to traverse each n every node and redraw whole tree.
plz do guide ..
Re: Implement tree in gef [message #218420 is a reply to message #218349] Fri, 23 June 2006 20:52 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
If you join the CVS tools project (dev.eclipse.org : /cvsroot/tools ), there
is an draw2d examples plugin -> org.eclipse.draw2d.examples.

Take a look at the org.eclipse.draw2d.examples.tree.TreeExample class.

-Steve

"Puneet Srivastava" <puneet82sri@sify.com> wrote in message
news:22298642.1151046101391.JavaMail.root@cp1.javalobby.org...
> i need to know that can we implement a tree of figures
> in gef ? which can expand and collapse like a tree control does.
> i tried by using draw2d figures and path between them , but in case of
large tree items like more than 5000, the expand/collapse functionality
becomes very slow as we need to traverse each n every node and redraw whole
tree.
> plz do guide ..
Re: Implement tree in gef [message #218469 is a reply to message #218420] Mon, 26 June 2006 07:34 Go to previous message
Eclipse UserFriend
Originally posted by: puneet82sri.sify.com

thnx alot..
buti need to implement the tree as it comes in windows ie on the left side of explorer.. where we hav expand and collapse functionality, n where children are on the left right side of node only ..
we hav a plus/minus figure associated with each node that on click expands or collapses..
so instead of nodes i need to put my draw2d simple figures ..
Previous Topic:rotate, translate
Next Topic:buttons on editparts not showing at creation
Goto Forum:
  


Current Time: Sat Apr 20 01:53:21 GMT 2024

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

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

Back to the top