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

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.RenameClassAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
JBuilderRenameClassAction

public class RenameClassAction
extends GenericAction

Description of the Class

Author:
Mike Atkinson
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
RenameClassAction(SelectedFileSet init)
          Constructor for the RenameClassAction object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          The action to be performed
protected  void activateListener(TypeSummary[] typeSummaryArray, java.awt.event.ActionEvent evt)
          The listener to activate with the specified types
protected  void initNames()
          Description of the Method
protected  boolean isAllJava()
          Gets the AllJava attribute of the AddParentClassAction object
 boolean isEnabled()
          Gets the Enabled attribute of the RenameClassAction object
protected  boolean isSingleJavaFile()
          Gets the SingleJavaFile attribute of the AddChildClassAction object
protected  void updateMetaData()
          Reloads all the metadata before attempting to perform a refactoring.
 
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

RenameClassAction

public RenameClassAction(SelectedFileSet init)
Constructor for the RenameClassAction object

Parameters:
init - Description of Parameter
Method Detail

isEnabled

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

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

activateListener

protected void activateListener(TypeSummary[] typeSummaryArray,
                                java.awt.event.ActionEvent evt)
The listener to activate with the specified types

Parameters:
typeSummaryArray - Description of Parameter
evt - Description of Parameter

initNames

protected void initNames()
Description of the Method


isAllJava

protected boolean isAllJava()
Gets the AllJava attribute of the AddParentClassAction object

Returns:
The AllJava value

isSingleJavaFile

protected boolean isSingleJavaFile()
Gets the SingleJavaFile attribute of the AddChildClassAction object

Returns:
The SingleJavaFile value

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
The action to be performed

Parameters:
evt - the triggering event

updateMetaData

protected void updateMetaData()
Reloads all the metadata before attempting to perform a refactoring.