com.intellij.codeInsight.intention
Class IntentionManager

java.lang.Object
  extended by com.intellij.codeInsight.intention.IntentionManager
All Implemented Interfaces:
BaseComponent, ProjectComponent

public abstract class IntentionManager
extends java.lang.Object
implements ProjectComponent

Manager for intentions. All intentions must be registered here.


Constructor Summary
IntentionManager()
           
 
Method Summary
abstract  void addAction(IntentionAction action)
          Registers intention action.
static IntentionManager getInstance(Project project)
          Returns instance of IntententionManager for given project.
abstract  IntentionAction[] getIntentionActions()
          Returns all registered intention actions.
abstract  void registerIntentionAndMetaData(IntentionAction action, java.lang.String[] category)
           
abstract  void registerIntentionAndMetaData(IntentionAction action, java.lang.String[] category, java.lang.String descriptionDirectoryName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.intellij.openapi.components.ProjectComponent
projectClosed, projectOpened
 
Methods inherited from interface com.intellij.openapi.components.BaseComponent
disposeComponent, getComponentName, initComponent
 

Constructor Detail

IntentionManager

public IntentionManager()
Method Detail

getInstance

public static IntentionManager getInstance(Project project)
Returns instance of IntententionManager for given project.

Parameters:
project -
Returns:

addAction

public abstract void addAction(IntentionAction action)
Registers intention action.

Parameters:
action -

getIntentionActions

public abstract IntentionAction[] getIntentionActions()
Returns all registered intention actions.

Returns:
array of registered actions.

registerIntentionAndMetaData

public abstract void registerIntentionAndMetaData(IntentionAction action,
                                                  java.lang.String[] category)

registerIntentionAndMetaData

public abstract void registerIntentionAndMetaData(IntentionAction action,
                                                  java.lang.String[] category,
                                                  java.lang.String descriptionDirectoryName)