com.intellij.usages.impl
Class UsageViewManagerImpl

java.lang.Object
  extended by com.intellij.usages.UsageViewManager
      extended by com.intellij.usages.impl.UsageViewManagerImpl
All Implemented Interfaces:
BaseComponent, ProjectComponent

public class UsageViewManagerImpl
extends UsageViewManager
implements ProjectComponent

Created by IntelliJ IDEA. User: max Date: Dec 16, 2004 Time: 4:49:07 PM To change this template use File | Settings | File Templates.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.intellij.usages.UsageViewManager
UsageViewManager.UsageViewStateListener
 
Constructor Summary
UsageViewManagerImpl(Project project)
           
 
Method Summary
 UsageView createUsageView(UsageTarget[] targets, Usage[] usages, UsageViewPresentation presentation)
           
 void disposeComponent()
          Component should dispose system resources or perform another cleanup in this method.
 java.lang.String getComponentName()
          Unique name of this component.
 UsageView getSelectedUsageView()
           
 void initComponent()
          Component should do initialization and communication with another components in this method.
 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.
 UsageView searchAndShowUsages(UsageTarget[] searchFor, Factory<UsageSearcher> searcherFactory, boolean showPanelIfOnlyOneUsage, boolean showNotFoundMessage, UsageViewPresentation presentation, UsageViewManager.UsageViewStateListener listener)
           
 void searchAndShowUsages(UsageTarget[] searchFor, Factory<UsageSearcher> searcherFactory, FindUsagesProcessPresentation processPresentation, UsageViewPresentation presentation, UsageViewManager.UsageViewStateListener listener)
           
 UsageView showUsages(UsageTarget[] searchedFor, Usage[] foundUsages, UsageViewPresentation presentation)
           
 
Methods inherited from class com.intellij.usages.UsageViewManager
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsageViewManagerImpl

public UsageViewManagerImpl(Project project)
Method Detail

createUsageView

@NotNull
public UsageView createUsageView(UsageTarget[] targets,
                                         Usage[] usages,
                                         UsageViewPresentation presentation)
Specified by:
createUsageView in class UsageViewManager

showUsages

@NotNull
public UsageView showUsages(UsageTarget[] searchedFor,
                                    Usage[] foundUsages,
                                    UsageViewPresentation presentation)
Specified by:
showUsages in class UsageViewManager

searchAndShowUsages

public UsageView searchAndShowUsages(UsageTarget[] searchFor,
                                     Factory<UsageSearcher> searcherFactory,
                                     boolean showPanelIfOnlyOneUsage,
                                     boolean showNotFoundMessage,
                                     UsageViewPresentation presentation,
                                     UsageViewManager.UsageViewStateListener listener)
Specified by:
searchAndShowUsages in class UsageViewManager

searchAndShowUsages

public void searchAndShowUsages(UsageTarget[] searchFor,
                                Factory<UsageSearcher> searcherFactory,
                                FindUsagesProcessPresentation processPresentation,
                                UsageViewPresentation presentation,
                                UsageViewManager.UsageViewStateListener listener)
Specified by:
searchAndShowUsages in class UsageViewManager

getSelectedUsageView

public UsageView getSelectedUsageView()
Specified by:
getSelectedUsageView in class UsageViewManager

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

projectOpened

public void projectOpened()
Description copied from interface: ProjectComponent
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).

Specified by:
projectOpened in interface ProjectComponent

projectClosed

public void projectClosed()
Description copied from interface: ProjectComponent
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).

Specified by:
projectClosed in interface ProjectComponent