public final class IndexProviderManager
extends java.lang.Object
For bug 196338, the role of this class was extended. It now has responsibility to look at the pool of fragments available depending on their IDs, and select the most appropriate. The following rules are applied:
Constructor and Description |
---|
IndexProviderManager() |
Modifier and Type | Method and Description |
---|---|
void |
addIndexProvider(IIndexProvider provider)
Adds a PDOM-based index fragment provider.
|
void |
elementChanged(ElementChangedEvent event) |
int |
getOption(IConfigurationElement elem,
java.lang.String attributeName,
int option) |
IIndexFragment[] |
getProvidedIndexFragments(ICConfigurationDescription config,
int usage)
Get the array of IIndexFragment objects provided by all of the
registered IIndexProvider objects for the specified project, and
for the current state of the project.
|
void |
removeIndexProvider(IIndexProvider provider)
Removes the specified provider by object identity.
|
void |
reset()
Note: This method should not be called by clients for purposes other than testing
|
void |
reset(VersionRange pdomVersionRange)
Note: This method should not be called by clients for purposes other than testing
|
void |
startup() |
public void reset()
public void reset(VersionRange pdomVersionRange)
pdomVersionRange
- public void startup()
public int getOption(IConfigurationElement elem, java.lang.String attributeName, int option)
public IIndexFragment[] getProvidedIndexFragments(ICConfigurationDescription config, int usage) throws CoreException
config
- CoreException
public void addIndexProvider(IIndexProvider provider)
provider
- public void removeIndexProvider(IIndexProvider provider)
provider
- public void elementChanged(ElementChangedEvent event)