[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: How about a Virtual Resource tree?
|
It sounds like you would want to define your own view to represent your catalog(s). Much like JDT provides a package view to show a
Java specific representation of the file system.
You can base your view on the Resource Navigator and provide different content and label providers, menus, sorting etc. Currently
the only way to do this is by subclassing from the Navigator.
I'd be interested in hearing what you end up doing and what aspects of the Navigator you customized if you go down that route. We
are investigating making the Navigator more customizable by plug-in developers.
Knut
"Colin Kingsbury" <cwkingsbury@xxxxxxxxxxxxx> wrote in message news:b7nkse$679$1@xxxxxxxxxxxxxxxx
> Is there any more dynamic way to work with the resource tree than simply a
> static hierarchy of files and directories?
>
> Let's say I have ten XML files, each of which represents an item of
> clothing. XML tag structures within each file will define the type
> (pants|shirt), gender (male|female), and size (s|m|l) of that item. All will
> be stored inside a single directory which can be thought of as a "catalog."
>
> Now when the user opens this catalog up, he ought to be able to see these
> data organized in any way he wishes: by gender, then type, then size, or by
> type, size, gender, etc etc.
>
> Is there a way to build the resource tree view "virtually" based on
> organizing principles other than simple file hierarchies?
>
> Thanks in advance,
> -cwk.
>
>