summaryrefslogtreecommitdiff
path: root/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java')
-rw-r--r--platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java b/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java
index 5577664bf9f7..ee850c3fe060 100644
--- a/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java
+++ b/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/ActionManager.java
@@ -20,6 +20,7 @@ import com.intellij.openapi.actionSystem.ex.AnActionListener;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.extensions.PluginId;
+import com.intellij.openapi.project.ProjectType;
import com.intellij.openapi.util.ActionCallback;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
@@ -80,7 +81,7 @@ public abstract class ActionManager implements ApplicationComponent {
* @param actionId Id of the registered action
*
* @return Action associated with the specified actionId, <code>null</code> if
- * there is no actions associated with the speicified actionId
+ * there is no actions associated with the specified actionId
*
* @exception java.lang.IllegalArgumentException if <code>actionId</code> is <code>null</code>
*
@@ -89,6 +90,20 @@ public abstract class ActionManager implements ApplicationComponent {
public abstract AnAction getAction(@NonNls @NotNull String actionId);
/**
+ * Returns action associated with the specified actionId.
+ *
+ * @param actionId Id of the registered action
+ *
+ * @return Action associated with the specified actionId, <code>null</code> if
+ * there is no actions associated with the specified actionId
+ *
+ * @exception java.lang.IllegalArgumentException if <code>actionId</code> is <code>null</code>
+ *
+ * @see com.intellij.openapi.actionSystem.IdeActions
+ */
+ public abstract AnAction getAction(@NonNls @NotNull String actionId, @Nullable ProjectType projectType);
+
+ /**
* Returns actionId associated with the specified action.
*
* @return id associated with the specified action, <code>null</code> if action