org.argouml.uml.ui
Class ActionOpenProject

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

public class ActionOpenProject
extends ActionFileOperations
implements CommandLineInterface

Action that loads the project. This will throw away the project that we were working with up to this point so some extra caution.

See Also:
ActionSaveProject, Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static Logger LOG
           
 
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
ActionOpenProject()
          Constructor for this action.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Performs the action of opening a project.
 boolean doCommand(String argument)
          Execute this action from the command line.
 
Methods inherited from class org.argouml.uml.ui.ActionFileOperations
askConfirmationAndSave, loadProject
 
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
 

Field Detail

LOG

private static final Logger LOG
Constructor Detail

ActionOpenProject

public ActionOpenProject()
Constructor for this action.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Performs the action of opening a project.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - an event

doCommand

public boolean doCommand(String argument)
Execute this action from the command line.

Specified by:
doCommand in interface CommandLineInterface
Parameters:
argument - is the url of the project we load.
Returns:
true if it is OK.
See Also:
CommandLineInterface.doCommand(String)


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook