Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Providing a custom sorter for Project Explorer
Providing a custom sorter for Project Explorer [message #332895] Thu, 13 November 2008 01:43 Go to next message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 104
Registered: July 2009
Senior Member
I'm trying to add a simple sorter to the Package Explorer view which is
supposed to override the default Java package sorting. Looking at the
org.eclipse.ui.navigator.navigatorContent documentation there seem to be
no way to install a custom sorter without also defining a corresponding
content and label providers which is what I'm trying to avoid. The
documentation page for this EP has an example for a standalone sorter
defined outside of navigatorContent tag but this doesn't appear to work,
at least not in 3.4.1. There is IPipelinedTreeContentProvider which can
likely help to pass through the content obtained from the Java content
provider as, however there seem to be no mechanism to pipeline label
providers so my label provider would have to somehow mimic what the Java
one is doing. Any suggestions on the simplest way to achieve this? Thanks
much.
Re: Providing a custom sorter for Project Explorer [message #333241 is a reply to message #332895] Mon, 01 December 2008 23:56 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Please file a bug about this. We should allow you to leave off the
content and labelprovider in your navigator content extension and only
define the sorter.

The pipeline stuff is not really what you are after since that has to do
only with chaining content providers together.

Francis

Vladimir Grishchenko wrote:
> I'm trying to add a simple sorter to the Package Explorer view which is
> supposed to override the default Java package sorting. Looking at the
> org.eclipse.ui.navigator.navigatorContent documentation there seem to be
> no way to install a custom sorter without also defining a corresponding
> content and label providers which is what I'm trying to avoid. The
> documentation page for this EP has an example for a standalone sorter
> defined outside of navigatorContent tag but this doesn't appear to work,
> at least not in 3.4.1. There is IPipelinedTreeContentProvider which can
> likely help to pass through the content obtained from the Java content
> provider as, however there seem to be no mechanism to pipeline label
> providers so my label provider would have to somehow mimic what the Java
> one is doing. Any suggestions on the simplest way to achieve this?
> Thanks much.
>


--
*new* Common Navigator Framework section in:
3.4RC4 Platform Plugin Developer Guide (Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm
http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go


Re: Providing a custom sorter for Project Explorer [message #333249 is a reply to message #333241] Tue, 02 December 2008 00:55 Go to previous message
Vladimir Grishchenko is currently offline Vladimir GrishchenkoFriend
Messages: 104
Registered: July 2009
Senior Member
There is already an open enhancement request which seem to be about the
same issue, more or less anyway:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=141724


-Vladimir


Francis Upton (News) wrote:

> Please file a bug about this. We should allow you to leave off the
> content and labelprovider in your navigator content extension and only
> define the sorter.

> The pipeline stuff is not really what you are after since that has to do
> only with chaining content providers together.

> Francis
Previous Topic:Implementing a File Listener in a plugin
Next Topic:How to prevent a non-java file from being copied to the /bin folder
Goto Forum:
  


Current Time: Thu Dec 26 11:49:29 GMT 2024

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

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

Back to the top