Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Sorting Eclipse help ToC contributed using ToCProvider(Way to sort Eclipse help contents that are contributed by ToCProvider)
icon5.gif  Sorting Eclipse help ToC contributed using ToCProvider [message #871891] Tue, 15 May 2012 04:54 Go to next message
suresh inavolu is currently offline suresh inavoluFriend
Messages: 3
Registered: July 2009
Junior Member
We are sorting ToC's in Eclipse help by providing helpData.xml given in the branding plugin (product plugin).

This work properly for static help data (and we have some help plugins that are static help). However there is requirement to dynamically group two top-level help plugins into a single root node. In order to do this we are using the extension point to create Eclipse help ToC dynamically - Using ToCProvider - "" and ""

However when providing it using ToCProvider, the newly created help node is always displaying at the end.

Is there any way to sort the ToC's (maybe providing a Comparator kind of class?)
Re: Sorting Eclipse help ToC contributed using ToCProvider [message #872408 is a reply to message #871891] Wed, 16 May 2012 04:14 Go to previous message
Catalin Gerea is currently offline Catalin GereaFriend
Messages: 89
Registered: July 2009
Location: Bucharest, Romania

Hello Suresh

When creating the help dynamically you can control the order of the contributions as well as the order of the TOC. As as far as I know there is no out of the box comparator for TOC.
As the example from is using IToc interface, note that there is also IToc2 interface starting with Eclipse 3.5 that Quote:
extends IToc by adding methods to support functionality for criteria, topic sorting and custom icons
although it seems that sorting is done only alphabetically.

Time is what you make of it.
Previous Topic:Is there a way to programatically set the width of the columns in the ProblemsView?
Next Topic:automated non-interactive operation
Goto Forum:

Current Time: Tue Sep 29 11:52:27 GMT 2020

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

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

Back to the top