org.eclipse.cdt.internal.ui.text.folding
Class CFoldingStructureProviderRegistry

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.text.folding.CFoldingStructureProviderRegistry

public class CFoldingStructureProviderRegistry
extends java.lang.Object


Constructor Summary
CFoldingStructureProviderRegistry()
          Creates a new instance.
 
Method Summary
 ICFoldingStructureProvider getCurrentFoldingProvider()
          Instantiates and returns the provider that is currently configured in the preferences.
 CFoldingStructureProviderDescriptor getFoldingProviderDescriptor(java.lang.String id)
          Returns the folding provider with identifier id or null if no such provider is registered.
 CFoldingStructureProviderDescriptor[] getFoldingProviderDescriptors()
          Returns an array of ICFoldingProviderDescriptor describing all extension to the foldingProviders extension point.
 void reloadExtensions()
          Reads all extensions.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFoldingStructureProviderRegistry

public CFoldingStructureProviderRegistry()
Creates a new instance.

Method Detail

getFoldingProviderDescriptors

public CFoldingStructureProviderDescriptor[] getFoldingProviderDescriptors()
Returns an array of ICFoldingProviderDescriptor describing all extension to the foldingProviders extension point.

Returns:
the list of extensions to the quickDiffReferenceProvider extension point.

getFoldingProviderDescriptor

public CFoldingStructureProviderDescriptor getFoldingProviderDescriptor(java.lang.String id)
Returns the folding provider with identifier id or null if no such provider is registered.

Parameters:
id - the identifier for which a provider is wanted
Returns:
the corresponding provider, or null if none can be found

getCurrentFoldingProvider

public ICFoldingStructureProvider getCurrentFoldingProvider()
Instantiates and returns the provider that is currently configured in the preferences.

Returns:
the current provider according to the preferences

reloadExtensions

public void reloadExtensions()
Reads all extensions.

This method can be called more than once in order to reload from a changed extension registry.