org.argouml.uml.ui
Class ActionSaveProject
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.ActionFileOperations
org.argouml.uml.ui.ActionSaveProject
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- ActionSaveProjectAs
- public class ActionSaveProject
- extends ActionFileOperations
Action that saves the project.
- See Also:
ActionOpenProject
,
Serialized Form
LOG
private static final Logger LOG
- logger
INSTANCE
private static final ActionSaveProject INSTANCE
- The singleton.
ActionSaveProject
protected ActionSaveProject()
- The constructor.
ActionSaveProject
protected ActionSaveProject(String name,
Icon icon)
- The constructor.
- Parameters:
name
- the name of the action.icon
- the icon to represent this action graphically.
getInstance
public static ActionSaveProject getInstance()
- Returns:
- the singleton
actionPerformed
public void actionPerformed(ActionEvent e)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
trySave
public boolean trySave(boolean overwrite)
- Try to save the project.
- Parameters:
overwrite
- if true, then we overwrite without asking
- Returns:
- true if successful
trySave
public boolean trySave(boolean overwrite,
File file)
- Try to save the project.
- Parameters:
overwrite
- if true, then we overwrite without askingfile
- the File to save to
- Returns:
- true if successful