Providing a custom sorter for Project Explorer [message #332895] |
Wed, 12 November 2008 20:43  |
Eclipse User |
|
|
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08422 seconds