com.intellij.navigation
Class ChooseByNameRegistry

java.lang.Object
  extended by com.intellij.navigation.ChooseByNameRegistry
All Implemented Interfaces:
ApplicationComponent, BaseComponent

public class ChooseByNameRegistry
extends java.lang.Object
implements ApplicationComponent

Registry of components which contribute items to "Goto Class" and "Goto Symbol" lists.


Constructor Summary
ChooseByNameRegistry()
           
 
Method Summary
 void contributeToClasses(ChooseByNameContributor contributor)
          Registers a component which contributes items to the "Goto Class" list.
 void contributeToSymbols(ChooseByNameContributor contributor)
          Registers a component which contributes items to the "Goto Symbol" list.
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 ChooseByNameContributor[] getClassModelContributors()
          Returns the list of registered contributors for the "Goto Class" list.
 java.lang.String getComponentName()
          Unique name of this component.
static ChooseByNameRegistry getInstance()
          Returns the singleton instance of the registry.
 ChooseByNameContributor[] getSymbolModelContributors()
          Returns the list of registered contributors for the "Goto Symbol" list.
 void initComponent()
          Component should do initialization and communication with another components in this method.
 void removeContributor(ChooseByNameContributor contributor)
          Unregisters a contributor for "Goto Class" and "Goto Symbol" lists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChooseByNameRegistry

public ChooseByNameRegistry()
Method Detail

getInstance

public static ChooseByNameRegistry getInstance()
Returns the singleton instance of the registry.

Returns:
the registry instance.

contributeToClasses

public void contributeToClasses(ChooseByNameContributor contributor)
Registers a component which contributes items to the "Goto Class" list.

Parameters:
contributor - the contributor instance.
See Also:
removeContributor(ChooseByNameContributor)

contributeToSymbols

public void contributeToSymbols(ChooseByNameContributor contributor)
Registers a component which contributes items to the "Goto Symbol" list.

Parameters:
contributor - the contributor instance.
See Also:
removeContributor(ChooseByNameContributor)

removeContributor

public void removeContributor(ChooseByNameContributor contributor)
Unregisters a contributor for "Goto Class" and "Goto Symbol" lists.

Parameters:
contributor - the contributor instance.

getClassModelContributors

public ChooseByNameContributor[] getClassModelContributors()
Returns the list of registered contributors for the "Goto Class" list.

Returns:
the array of contributors.

getSymbolModelContributors

public ChooseByNameContributor[] getSymbolModelContributors()
Returns the list of registered contributors for the "Goto Symbol" list.

Returns:
the array of contributors.

getComponentName

public java.lang.String getComponentName()
Description copied from interface: BaseComponent
Unique name of this component. If there is another component with the same name or name is null internal assertion will occur.

Specified by:
getComponentName in interface BaseComponent
Returns:
the name of this component

initComponent

public void initComponent()
Description copied from interface: BaseComponent
Component should do initialization and communication with another components in this method.

Specified by:
initComponent in interface BaseComponent

disposeComponent

public void disposeComponent()
Description copied from interface: BaseComponent
Component should dispose system resources or perform another cleanup in this method.

Specified by:
disposeComponent in interface BaseComponent