Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » newbie treeviewer question
newbie treeviewer question [message #267649] Wed, 18 August 2004 17:29 Go to next message
Eclipse UserFriend
Originally posted by: crf.xxxxxxx.com

i have to make a view that is kind of like the java class hierarchy
view, and i need to read all the files that are in the workspace to
show all the member variables in one view. do you know where i should
start with this? what input do i give to my contentprovider- the
workspace root? what should i do with this input in the
contentprovider? i have no idea where to start right now. ANY help
with this would be great- thank you!

thanks,
christine
Re: newbie treeviewer question [message #267669 is a reply to message #267649] Wed, 18 August 2004 19:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rpm.motorola.com

Hey Christine....try this out to work with views

http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l
http://www-106.ibm.com/developerworks/java/library/os-ecgui1 /

the second one is more of what you need....
the first one is an intro to creating views

:wq
rohit


Christine Francis wrote:

> i have to make a view that is kind of like the java class hierarchy
> view, and i need to read all the files that are in the workspace to
> show all the member variables in one view. do you know where i should
> start with this? what input do i give to my contentprovider- the
> workspace root? what should i do with this input in the
> contentprovider? i have no idea where to start right now. ANY help
> with this would be great- thank you!

> thanks,
> christine
Re: newbie treeviewer question [message #267675 is a reply to message #267649] Wed, 18 August 2004 19:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

Add org.eclipse.ui.views to your plug-in dependency list and
then do Ctrl-Shift-T 'ResourceNavigator'. It uses a treeviewer.
See getInitialInput();

The Java Package Explorer uses the JavaModel, which may be
more than you want to.

Chris

"Christine Francis" <crf@xxxxxxx.com> wrote in message
news:qbi7i0pnhhnuetpt1vg5tf0soiqebuu95b@4ax.com...
> i have to make a view that is kind of like the java class hierarchy
> view, and i need to read all the files that are in the workspace to
> show all the member variables in one view. do you know where i should
> start with this? what input do i give to my contentprovider- the
> workspace root? what should i do with this input in the
> contentprovider? i have no idea where to start right now. ANY help
> with this would be great- thank you!
>
> thanks,
> christine
Re: newbie treeviewer question [message #268111 is a reply to message #267669] Fri, 20 August 2004 22:54 Go to previous message
Eclipse UserFriend
Rohit Mordani wrote:

> Hey Christine....try this out to work with views
>
> http://www.eclipse.org/articles/viewArticle/ViewArticle2.htm l

This one is *really* well done, my respect, thanks and best regards to
the author Dave Springgay! It covers/touches almost every aspect of
view programming "the right way". Read it, if you haven't already,
reread, if you have. You might find yourself having forgotten about
Eclipse views "good practice" somewhere.

Thanks Rohit for these pointers

Georg
--
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ georg.rehfeld.nospam@gmx.de +49 (40) 23 53 27 10
Previous Topic:Eclipse 3.0, Ant and the Ant input tag...
Next Topic:Action-How to activate via Keystroke (does not work)
Goto Forum:
  


Current Time: Tue Jul 15 19:25:02 EDT 2025

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

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

Back to the top