org.acm.seguin.ide.common.action
Class ExtractMethodAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.acm.seguin.ide.common.action.GenericAction
          extended by org.acm.seguin.ide.common.action.ExtractMethodAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ExtractMethodAction
extends GenericAction

Performs the extract method action

Author:
Chris Seguin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.acm.seguin.ide.common.action.GenericAction
ACCELERATOR
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ExtractMethodAction()
          Constructor for the ExtractMethodAction object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          What to do when someone selects the extract method refactoring
 boolean isEnabled()
          Gets the Enabled attribute of the ExtractMethodAction object
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractMethodAction

public ExtractMethodAction()
Constructor for the ExtractMethodAction object

Method Detail

isEnabled

public boolean isEnabled()
Gets the Enabled attribute of the ExtractMethodAction object

Specified by:
isEnabled in interface javax.swing.Action
Overrides:
isEnabled in class javax.swing.AbstractAction
Returns:
The Enabled value

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
What to do when someone selects the extract method refactoring

Parameters:
e - the button event