org.acm.seguin.ide.netbeans
Class PrettyPrinterAction

java.lang.Object
  extended by CookieAction
      extended by org.acm.seguin.ide.netbeans.PrettyPrinterAction

public class PrettyPrinterAction
extends CookieAction

Applies the JRefactory pretty printer to the currently selected editor. Will only be applied if only one editor is selected.

Author:
Mike Atkinson

Constructor Summary
PrettyPrinterAction()
           
 
Method Summary
 boolean asynchronous()
           
protected  java.lang.Class[] cookieClasses()
          Description of the Method
protected  boolean enable(Node[] nodes)
          Perform special enablement check in addition to the normal one.
 HelpCtx getHelpCtx()
          Gets the helpCtx attribute of the PrettyPrinterAction object
 java.lang.String getName()
          Gets the name attribute of the PrettyPrinterAction object
protected  java.lang.String iconResource()
          Get the path to the icon to be displayed in menus, etc
protected  void initialize()
          Perform extra initialization of this action's singleton.
protected  int mode()
           
protected  void performAction(Node[] nodes)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrettyPrinterAction

public PrettyPrinterAction()
Method Detail

getHelpCtx

public HelpCtx getHelpCtx()
Gets the helpCtx attribute of the PrettyPrinterAction object

Returns:
The helpCtx value

getName

public java.lang.String getName()
Gets the name attribute of the PrettyPrinterAction object

Returns:
The name value

cookieClasses

protected java.lang.Class[] cookieClasses()
Description of the Method

Returns:
Description of the Return Value

asynchronous

public boolean asynchronous()

enable

protected boolean enable(Node[] nodes)
Perform special enablement check in addition to the normal one.

Parameters:
nodes - Description of the Parameter
Returns:
Description of the Return Value

iconResource

protected java.lang.String iconResource()
Get the path to the icon to be displayed in menus, etc

Returns:
Icon to be displayed in menus, etc.

initialize

protected void initialize()
Perform extra initialization of this action's singleton. PLEASE do not use constructors for this purpose!


mode

protected int mode()
Returns:
MODE_EXACTLY_ONE

performAction

protected void performAction(Node[] nodes)
Description of the Method

Parameters:
nodes - Description of the Parameter