Package org.eclipse.help
Class AbstractTocProvider
java.lang.Object
org.eclipse.help.AbstractTocProvider
An 
AbstractTocProvider is a mechanism to provide arbitrary
 content to the table of contents (TOC). AbstractTocProviders
 must be registered via the org.eclipse.help.toc extension point.- Since:
- 3.3
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intDefault priority for toc providers that do not override getPriority()static final intPriority for toc files read from the local file system
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidNotifies the platform that the content managed by this provider may have changed since the last timegetTocContributions()was called, and needs to be updated.intIf two toc contributions have the same id, the one with higher priority will be shown.abstract ITocContribution[]getTocContributions(String locale) Returns all toc contributions for this provider.
- 
Field Details- 
DEFAULT_PRIORITYpublic static final int DEFAULT_PRIORITYDefault priority for toc providers that do not override getPriority()- Since:
- 3.5
- See Also:
 
- 
TOC_FILE_PRIORITYpublic static final int TOC_FILE_PRIORITYPriority for toc files read from the local file system- Since:
- 3.5
- See Also:
 
 
- 
- 
Constructor Details- 
AbstractTocProviderpublic AbstractTocProvider()
 
- 
- 
Method Details- 
getTocContributionsReturns all toc contributions for this provider. Providers are free to provide any number of contributions (zero or more).- Parameters:
- locale- the locale for which to get contributions
- Returns:
- all the contributions for this provider
 
- 
contentChangedprotected void contentChanged()Notifies the platform that the content managed by this provider may have changed since the last timegetTocContributions()was called, and needs to be updated.
- 
getPrioritypublic int getPriority()If two toc contributions have the same id, the one with higher priority will be shown. For example, a provider with priority 1 will take precedence over a provider with priority 2.- Returns:
- the priority of this provider
- Since:
- 3.5
 
 
-