org.eclipse.cdt.internal.ui.text.contentassist
Class CompletionProposalComputerRegistry

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.text.contentassist.CompletionProposalComputerRegistry

public final class CompletionProposalComputerRegistry
extends java.lang.Object

A registry for all extensions to the org.eclipse.cdt.ui.completionProposalComputer extension point.

Since:
4.0

Constructor Summary
CompletionProposalComputerRegistry()
          Creates a new instance.
 
Method Summary
static CompletionProposalComputerRegistry getDefault()
          Returns the default computer registry.
 java.util.List getProposalCategories()
          Returns the list of proposal categories contributed to the completionProposalComputer extension point.
 void reload()
          Reloads the extensions to the extension point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionProposalComputerRegistry

public CompletionProposalComputerRegistry()
Creates a new instance.

Method Detail

getDefault

public static CompletionProposalComputerRegistry getDefault()
Returns the default computer registry.

TODO keep this or add some other singleton, e.g. CUIPlugin?

Returns:
the singleton instance

getProposalCategories

public java.util.List getProposalCategories()
Returns the list of proposal categories contributed to the completionProposalComputer extension point.

The returned list is read-only and is sorted in the order that the extensions were read in. There are no duplicate elements in the returned list. The returned list may change if plug-ins are loaded or unloaded while the application is running.

Returns:
list of proposal categories contributed to the completionProposalComputer extension point (element type: CompletionProposalCategory)

reload

public void reload()
Reloads the extensions to the extension point.

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