com.intellij.openapi.components
Interface ProjectComponent

All Superinterfaces:
BaseComponent
All Known Subinterfaces:
PomModel, PomModelAspect, XmlAspect
All Known Implementing Classes:
ChangeBrowserSettings, ChooseByNameFactory, CodeStyleSettingsManager, DebuggerManager, DependencyValidationManager, FileViewConfiguration, IntentionManager, NamedScopeManager, PomCoreAspect, PomJavaAspect, SelectInManager, TestEditorManagerImpl, TreeAspect, TreeClassChooserFactory, UsageViewManagerImpl, VcsConfiguration, VcsManager, XmlBasedObjectsManager

public interface ProjectComponent
extends BaseComponent

Project-level component's implementation class should implement the ProjectComponent interface. It should have constructor with a single parameter of Project type or with no parameters.

See plugins.html for more information.


Method Summary
 void projectClosed()
          Invoked when the project corresponding to this component instance is closed.
 void projectOpened()
          Invoked when the project corresponding to this component instance is opened.
 
Methods inherited from interface com.intellij.openapi.components.BaseComponent
disposeComponent, getComponentName, initComponent
 

Method Detail

projectOpened

void projectOpened()
Invoked when the project corresponding to this component instance is opened.

Note that components may be created for even unopened projects and this method can be never invoked for a particular component instance (for example for default project).


projectClosed

void projectClosed()
Invoked when the project corresponding to this component instance is closed.

Note that components may be created for even unopened projects and this method can be never invoked for a particular component instance (for example for default project).