Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Extending or Enhancing the Package Explorer? using Common Navigator?
Extending or Enhancing the Package Explorer? using Common Navigator? [message #323225] Fri, 14 December 2007 15:34 Go to next message
Eclipse UserFriend
I would like to extend or enhance the functionality of the Package
Explorer to organize certain files into certain directorys or folders,
much like how the source folders (virtual?) show up in the root of a
java project, but are mapped to the actual folder in the workspace on
the project.

Ive been reading up on Common Navigator thinking it would help me out,
but I have been unlucky on finding the right information to help me
achieve this. I have been through Michael Elder's tutorials, but they
do not seem to help in the situation I am trying to achieve.

Any feedback or pointers on where to start looking at how to do this
would be greatly appreciated...

Thanks
Brian Jakubik
Re: Extending or Enhancing the Package Explorer? using Common Navigator? [message #323283 is a reply to message #323225] Mon, 17 December 2007 18:34 Go to previous messageGo to next message
Eclipse UserFriend
AFAIK, the Package Explorer is not based on the Common Navigator (it's
its own set of classes). The *Project* Explorer is.

It's not clear from your description (to me at least) what you are
trying to do, but I would read up on resources in the Platform Plugin
Developer Guide (in help), it's pretty flexible and allows things like
linking or alternate file systems.

HTH,

Francis

Brian Jakubik wrote:
> I would like to extend or enhance the functionality of the Package
> Explorer to organize certain files into certain directorys or folders,
> much like how the source folders (virtual?) show up in the root of a
> java project, but are mapped to the actual folder in the workspace on
> the project.
>
> Ive been reading up on Common Navigator thinking it would help me out,
> but I have been unlucky on finding the right information to help me
> achieve this. I have been through Michael Elder's tutorials, but they
> do not seem to help in the situation I am trying to achieve.
>
> Any feedback or pointers on where to start looking at how to do this
> would be greatly appreciated...
>
> Thanks
> Brian Jakubik
Re: Extending or Enhancing the Package Explorer? using Common Navigator? [message #323356 is a reply to message #323283] Tue, 18 December 2007 12:27 Go to previous messageGo to next message
Eclipse UserFriend
thanks, ill look into that, let me try another example,

Say I have a Dynamic web project with a WebContent folder, and it
includes a variety of jsp files, html files, ... in the root of WebContent

I would like to have it display in the package/project explorer as:

Project
|-WebContent
|-HTML Files
| |-file1.html
| |-file2.html
|
|-JSP Files
|-file1.jsp
|-file2.jsp
|-...
|-...
but keep the files in the root of whereever they are ...

The DWP sorta does this with the Web App Libraries...

Thanks again

Francis Upton wrote:
> AFAIK, the Package Explorer is not based on the Common Navigator (it's
> its own set of classes). The *Project* Explorer is.
>
> It's not clear from your description (to me at least) what you are
> trying to do, but I would read up on resources in the Platform Plugin
> Developer Guide (in help), it's pretty flexible and allows things like
> linking or alternate file systems.
>
> HTH,
>
> Francis
>
> Brian Jakubik wrote:
>> I would like to extend or enhance the functionality of the Package
>> Explorer to organize certain files into certain directorys or folders,
>> much like how the source folders (virtual?) show up in the root of a
>> java project, but are mapped to the actual folder in the workspace on
>> the project.
>>
>> Ive been reading up on Common Navigator thinking it would help me out,
>> but I have been unlucky on finding the right information to help me
>> achieve this. I have been through Michael Elder's tutorials, but they
>> do not seem to help in the situation I am trying to achieve.
>>
>> Any feedback or pointers on where to start looking at how to do this
>> would be greatly appreciated...
>>
>> Thanks
>> Brian Jakubik
Re: Extending or Enhancing the Package Explorer? using Common Navigator? [message #323360 is a reply to message #323356] Tue, 18 December 2007 13:08 Go to previous message
Eclipse UserFriend
I would look at the source code of the WTP project to see how they do
it. They might use the links capability of resources to accomplish
this. As far as I know, you can't set multiple roots or anything like
that in the CommonNavigator. You can use filters, but that just
restricts what is shown, which is not what you want.

Using links with resources will work with all types of navigators/explorers.

HTH,
Francis

Brian Jakubik wrote:
> thanks, ill look into that, let me try another example,
>
> Say I have a Dynamic web project with a WebContent folder, and it
> includes a variety of jsp files, html files, ... in the root of WebContent
>
> I would like to have it display in the package/project explorer as:
>
> Project
> |-WebContent
> |-HTML Files
> | |-file1.html
> | |-file2.html
> |
> |-JSP Files
> |-file1.jsp
> |-file2.jsp
> |-...
> |-...
> but keep the files in the root of whereever they are ...
>
> The DWP sorta does this with the Web App Libraries...
>
> Thanks again
>
> Francis Upton wrote:
>> AFAIK, the Package Explorer is not based on the Common Navigator (it's
>> its own set of classes). The *Project* Explorer is.
>>
>> It's not clear from your description (to me at least) what you are
>> trying to do, but I would read up on resources in the Platform Plugin
>> Developer Guide (in help), it's pretty flexible and allows things like
>> linking or alternate file systems.
>>
>> HTH,
>>
>> Francis
>>
>> Brian Jakubik wrote:
>>> I would like to extend or enhance the functionality of the Package
>>> Explorer to organize certain files into certain directorys or
>>> folders, much like how the source folders (virtual?) show up in the
>>> root of a java project, but are mapped to the actual folder in the
>>> workspace on the project.
>>>
>>> Ive been reading up on Common Navigator thinking it would help me
>>> out, but I have been unlucky on finding the right information to help
>>> me achieve this. I have been through Michael Elder's tutorials, but
>>> they do not seem to help in the situation I am trying to achieve.
>>>
>>> Any feedback or pointers on where to start looking at how to do this
>>> would be greatly appreciated...
>>>
>>> Thanks
>>> Brian Jakubik
Previous Topic:Eclipse command line worspace refresh
Next Topic:Update Manager: WST not selected via "Select Required"
Goto Forum:
  


Current Time: Wed May 07 11:36:31 EDT 2025

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

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

Back to the top