Implementing a ResourceNavigator [message #22235] |
Tue, 29 April 2003 14:58 |
Eclipse User |
|
|
|
Originally posted by: Gyorgy.Balogh.vanderbilt.edu
Hi,
I'm developing a plug-in. I'd like to create a view similar to Navigator or
Package Exlorer to show a specific type of projects. How can do it easily.
Should I use ResourceNavigator as base class (it didn't work for me for the
first time).
Thank you
George
|
|
|
Re: Implementing a ResourceNavigator [message #23380 is a reply to message #22235] |
Tue, 29 April 2003 20:08 |
Eclipse User |
|
|
|
Originally posted by: knut_radloff.oti.com
"Gyorgy Balogh" <Gyorgy.Balogh@vanderbilt.edu> wrote in message news:b8m0do$283$1@rogue.oti.com...
> I'm developing a plug-in. I'd like to create a view similar to Navigator or
> Package Exlorer to show a specific type of projects. How can do it easily.
> Should I use ResourceNavigator as base class (it didn't work for me for the
> first time).
Yes, you should be able to subclass ResourceNavigator. Can you elaborate on what did not work when you subclassed?
All you need to do is set a filter on the tree viewer and filter according to your project type criterium. See
ResourceNavigator.initFilters.
You could also add this filter to the standard resource navigator but it doesn't sound like this is what you want. I.e., you want an
entirely new view.
For release 3.0 we want to make the navigator easier to customize. It should be easier to customize it than to copy the code and
hack it. Bug 36961 is tracking this (http://bugs.eclipse.org/bugs/show_bug.cgi?id=36961). Feel free to add any comments and
suggestions you have about customizing and subclassing the navigator in general. Let us know if you find anything that gets in the
way of customizing the navigator.
Knut
|
|
|
Powered by
FUDForum. Page generated in 0.44861 seconds