com.intellij.openapi.actionSystem
Class ActionStub

java.lang.Object
  extended by com.intellij.openapi.actionSystem.AnAction
      extended by com.intellij.openapi.actionSystem.ActionStub

public class ActionStub
extends AnAction

The main (and single) purpose of this class is provide lazy initialization of the actions. ClassLoader eats a lot of time on startup to load the actions' classes.


Field Summary
 
Fields inherited from class com.intellij.openapi.actionSystem.AnAction
EMPTY_ARRAY, ourClientProperty
 
Constructor Summary
ActionStub(java.lang.String actionClass, java.lang.String id, java.lang.String text, java.lang.ClassLoader loader)
           
 
Method Summary
 void actionPerformed(AnActionEvent e)
          Implement this method to provide your action handler.
 java.lang.String getClassName()
           
 java.lang.String getId()
           
 java.lang.ClassLoader getLoader()
           
 java.lang.String getText()
           
 void initAction(AnAction targetAction)
          Copies template presentation and shortcuts set to targetAction.
 
Methods inherited from class com.intellij.openapi.actionSystem.AnAction
copyFrom, createTooltipText, displayTextInToolbar, getShortcutSet, getTemplatePresentation, isDefaultIcon, isEnabledInModalContext, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setShortcutSet, unregisterCustomShortcutSet, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionStub

public ActionStub(java.lang.String actionClass,
                  java.lang.String id,
                  java.lang.String text,
                  java.lang.ClassLoader loader)
Method Detail

getClassName

public java.lang.String getClassName()

getId

public java.lang.String getId()

getText

public java.lang.String getText()

getLoader

public java.lang.ClassLoader getLoader()

actionPerformed

public void actionPerformed(AnActionEvent e)
Description copied from class: AnAction
Implement this method to provide your action handler.

Specified by:
actionPerformed in class AnAction
Parameters:
e - Carries information on the invocation place

initAction

public final void initAction(AnAction targetAction)
Copies template presentation and shortcuts set to targetAction.

Parameters:
targetAction - cannot be null