org.argouml.uml.ui
Class ActionReopenProject

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.argouml.uml.ui.ActionReopenProject
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class ActionReopenProject
extends AbstractAction

Reopens a project with respect of the calling event handler - should be used with menu item.

Since:
10. November 2003 (0.15.2)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionReopenProject(String theFilename)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Performs the save and reload of a project.
 String getFilename()
          Get the filename for comparing during menu creation.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionReopenProject

public ActionReopenProject(String theFilename)
Constructor.

Parameters:
theFilename - The name of the file.
Method Detail

getFilename

public String getFilename()
Get the filename for comparing during menu creation.

Returns:
The filename.

actionPerformed

public void actionPerformed(ActionEvent e)
Performs the save and reload of a project.

Parameters:
e - e should old the event and the eventsource. Event source is the menu item, the text is used for opening the project


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook