org.argouml.uml.ui
Class ActionSaveProjectAs

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

public class ActionSaveProjectAs
extends ActionSaveProject

Action to save project under name.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static Logger LOG
          logger
static ActionSaveProjectAs SINGLETON
          The singleton.
 
Fields inherited from class org.argouml.uml.ui.ActionSaveProject
 
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
protected ActionSaveProjectAs()
          The constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  File getNewFile()
           
 boolean trySave(boolean overwrite)
          Try to save the project.
 
Methods inherited from class org.argouml.uml.ui.ActionSaveProject
getInstance, trySave
 
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
logger


SINGLETON

public static final ActionSaveProjectAs SINGLETON
The singleton.

Constructor Detail

ActionSaveProjectAs

protected ActionSaveProjectAs()
The constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class ActionSaveProject
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

trySave

public boolean trySave(boolean overwrite)
Description copied from class: ActionSaveProject
Try to save the project.

Overrides:
trySave in class ActionSaveProject
Parameters:
overwrite - if true, then we overwrite without asking
Returns:
true if successful
See Also:
ActionSaveProject.trySave(boolean)

getNewFile

protected File getNewFile()
Returns:
the File to save to


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