org.acm.seguin.ide.netbeans
Class CPDCheckBufferAction

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

public class CPDCheckBufferAction
extends CookieAction

Checks for Cut and paste in the current buffer

Author:
Mike Atkinson

Constructor Summary
CPDCheckBufferAction()
           
 
Method Summary
protected  boolean asynchronous()
          this means that performAction is expecting to be run in the event thread
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 CPDCheckBufferAction object
 java.lang.String getName()
          Gets the name attribute of the CPDCheckBufferAction object
protected  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
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
protected  void setStringInIDE(java.lang.String text)
          Sets the string in the IDE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPDCheckBufferAction

public CPDCheckBufferAction()
Method Detail

getHelpCtx

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

Returns:
The helpCtx value

getName

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

Returns:
The name value

cookieClasses

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

Returns:
Description of the Return Value

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

asynchronous

protected boolean asynchronous()
this means that performAction is expecting to be run in the event thread


performAction

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

Parameters:
nodes - Description of the Parameter

setStringInIDE

protected void setStringInIDE(java.lang.String text)
Sets the string in the IDE

Parameters:
text - The new StringInIDE value

getStringFromIDE

protected java.lang.String getStringFromIDE()
Gets the initial string from the IDE

Returns:
The file in string format