org.netbeans.modules.refactoring.api 1.26.0 1

org.netbeans.modules.refactoring.api.ui
Class RefactoringActionsFactory

java.lang.Object
  extended by org.netbeans.modules.refactoring.api.ui.RefactoringActionsFactory

public final class RefactoringActionsFactory
extends Object

Factory class providing instances of refactoring actions.

Usage:

 Lookup l = Lookups.singleton(node);
 Action a = RefactoringActionsFactory.renameAction().createContextAwareInstance(l);
 a.actionPerformed(RefactoringActionsFactory.DEFAULT_EVENT);
 
For help on creating and registering actions See Refactoring FAQ


Field Summary
static ActionEvent DEFAULT_EVENT
          defualt event for actionPerformed
 
Method Summary
static ContextAwareAction copyAction()
          Factory method for CopyAction
static Action editorSubmenuAction()
          Factory method for RSMEditorAction
static ContextAwareAction moveAction()
          Factory method for MoveAction
static ContextAwareAction popupSubmenuAction()
          Factory method for RSMDataObjectAction
static ContextAwareAction renameAction()
          Factory method for rename action
static ContextAwareAction safeDeleteAction()
          Factory method for SafeDeleteAction
static ContextAwareAction whereUsedAction()
          Factory method for WhereUsedAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EVENT

public static final ActionEvent DEFAULT_EVENT
defualt event for actionPerformed

Method Detail

renameAction

public static ContextAwareAction renameAction()
Factory method for rename action

Returns:
instance of RenameAction

moveAction

public static ContextAwareAction moveAction()
Factory method for MoveAction

Returns:
an instance of MoveAction

safeDeleteAction

public static ContextAwareAction safeDeleteAction()
Factory method for SafeDeleteAction

Returns:
an instance of SafeDeleteAction

copyAction

public static ContextAwareAction copyAction()
Factory method for CopyAction

Returns:
an instance of CopyAction

whereUsedAction

public static ContextAwareAction whereUsedAction()
Factory method for WhereUsedAction

Returns:
an instance of WhereUsedAction

editorSubmenuAction

public static Action editorSubmenuAction()
Factory method for RSMEditorAction

Returns:
an instance of RSMEditorAction

popupSubmenuAction

public static ContextAwareAction popupSubmenuAction()
Factory method for RSMDataObjectAction

Returns:
an instance of RSMDataObjectAction

org.netbeans.modules.refactoring.api 1.26.0 1

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