org.netbeans.core/2 3.32

org.netbeans.core
Class ModuleActions

java.lang.Object
  extended by org.openide.actions.ActionManager
      extended by org.netbeans.core.ModuleActions

public class ModuleActions
extends ActionManager

Holds list of all actions added by modules.


Field Summary
 
Fields inherited from class org.openide.actions.ActionManager
PROP_CONTEXT_ACTIONS
 
Constructor Summary
ModuleActions()
           
 
Method Summary
static void add(ManifestSection.ActionSection a)
          Adds new action to the list.
static void attachTo(Object m)
          Attaches to processing of a module.
 SystemAction[] getContextActions()
          Array with all activated actions.
static ModuleActions getDefaultInstance()
           
 Collection<Action> getRunningActions()
          Gets collection of currently running actions.
static void hideWaitCursor(Object key)
          Resets cursor to default.
 void invokeAction(Action a, ActionEvent e)
          Invokes action in a RequestPrecessor dedicated to performing actions.
static void remove(ManifestSection.ActionSection a)
          Removes new action from the list.
static void showWaitCursor(Object key)
          Sets wait cursor visible on the window associated with an event, if any.
 
Methods inherited from class org.openide.actions.ActionManager
addPropertyChangeListener, firePropertyChange, getDefault, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleActions

public ModuleActions()
Method Detail

getDefaultInstance

public static ModuleActions getDefaultInstance()

getContextActions

public SystemAction[] getContextActions()
Array with all activated actions. Can contain null that will be replaced by separators.

Specified by:
getContextActions in class ActionManager

invokeAction

public void invokeAction(Action a,
                         ActionEvent e)
Invokes action in a RequestPrecessor dedicated to performing actions.

Overrides:
invokeAction in class ActionManager

getRunningActions

public Collection<Action> getRunningActions()
Gets collection of currently running actions.


attachTo

public static void attachTo(Object m)
Attaches to processing of a module. The actual object passed is arbitrary, so long as it is different for every installed modules (as this controls the grouping of actions with separators). Passing null means stop processing a given module.


add

public static void add(ManifestSection.ActionSection a)
Adds new action to the list.


remove

public static void remove(ManifestSection.ActionSection a)
Removes new action from the list.


showWaitCursor

public static void showWaitCursor(Object key)
Sets wait cursor visible on the window associated with an event, if any.

Parameters:
key - something to pass to hideWaitCursor(java.lang.Object) to turn it off

hideWaitCursor

public static void hideWaitCursor(Object key)
Resets cursor to default.

Parameters:
key - the same key passed to showWaitCursor(java.lang.Object)

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.