org.acm.seguin.uml.refactor
Class NoInputRefactoringListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.acm.seguin.uml.PopupMenuListener
          extended by org.acm.seguin.uml.refactor.NoInputRefactoringListener
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener
Direct Known Subclasses:
PushUpAbstractMethodListener, PushUpFieldListener, PushUpMethodListener, RemoveClassListener

public abstract class NoInputRefactoringListener
extends PopupMenuListener

Performs a refactoring that requires no further user input

Author:
Chris Seguin

Constructor Summary
NoInputRefactoringListener(UMLPackage initPackage, javax.swing.JPopupMenu initMenu, javax.swing.JMenuItem initItem)
          Constructor for the NoInputRefactoringListener object
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          A menu item has been selected, display the dialog box
protected abstract  Refactoring createRefactoring()
          Creates a refactoring to be performed
protected  void updateSummaries()
          Do any necessary updates to the summaries after the refactoring is complete
 
Methods inherited from class org.acm.seguin.uml.PopupMenuListener
mouseEntered, mouseExited
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoInputRefactoringListener

public NoInputRefactoringListener(UMLPackage initPackage,
                                  javax.swing.JPopupMenu initMenu,
                                  javax.swing.JMenuItem initItem)
Constructor for the NoInputRefactoringListener object

Parameters:
initPackage - the UML package that is being operated on
initMenu - The popup menu
initItem - The current item
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
A menu item has been selected, display the dialog box

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class PopupMenuListener
Parameters:
evt - the action event

createRefactoring

protected abstract Refactoring createRefactoring()
Creates a refactoring to be performed

Returns:
the refactoring

updateSummaries

protected void updateSummaries()
Do any necessary updates to the summaries after the refactoring is complete