How to create Phantom folders (add virtual folders to resource navigator)? [message #279376] |
Mon, 17 January 2005 11:32 |
Eclipse User |
|
|
|
Originally posted by: mark.melvin.dspfactory.com
Hi All,
I am curious as to how to create phantom or virtual folders/groups in my
project. I want to add a "virtual" item, grouping some resources in a
logical group to the resource navigator for my project. As usual, the
CDT and JDT both appear to re-implement the entire resource navigator
view (CView and PackageExplorer). I really don't want to clone all of
this...I was hoping I could just "create" a virtual folder for my
project nature and have it show up in the resource navigator. By
virtual folder I mean, I want to provide a folder or group (similar to
the CDT "Includes" group, or the JDT's "Plug-in Dependencies" group)
which does not exist in the filesystem, but allows me to group resources
in a useful and intuitive way for my users. How would I go about doing
this? Is there a way to simply create a phantom folder? Do I need to
re-implement getAdapter(), or override getChildren() for my project
class? How do AdapterFactories work? Are there any good examples of
this - or am I stuff with using the JDT/CDT source (which as usual is
waaay beyond what I want to do)?
Is it bad karma to add this type of thing to the resource navigator
view, or should I do a simple subclass of the resource navigator and use
that in my perspective in its stead?
Thanks in advance,
Mark Melvin.
|
|
|
Powered by
FUDForum. Page generated in 0.02969 seconds