Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF TreeViewer example?
GEF TreeViewer example? [message #225924] Fri, 03 November 2006 17:59 Go to next message
Eclipse UserFriend
Originally posted by:


Could you please point me in the direction of an example of how to use the
GEF TreeViewer

Re: GEF TreeViewer example? [message #225981 is a reply to message #225924] Fri, 03 November 2006 20:54 Go to previous message
Alex Boyko is currently offline Alex BoykoFriend
Messages: 200
Registered: July 2009
Senior Member
Hi Mike,

Launch the logic example editor (that comes with GEF), throw a few shapes
on the diagram. Switch to "Resource" perspective just in case you're using
some other perspective. There is an "Outline" view in the bottom-left
corner. On the outline view's action bar there is a button with a
tree-like icon on it on far left from minimize and maximize outline view
window buttons. Click on the tree view button and you shall see the tree
view of the diagram it's built using the TreeViewer. An example of the
usage of TreeViewer can be found in logic example's source code. Open up
LogicEditor class, it should have a private OutlinePage class - this class
is the code for the outline view customized by the logic example editor.
Look through it and you'll find how the TreeViewer is used.

Previous Topic:Context Menu Provider
Next Topic:Construct Tabbed Properties at Runtime
Goto Forum:

Current Time: Mon Dec 06 21:45:18 GMT 2021

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

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

Back to the top