org.argouml.uml.ui
Class ActionSaveAllGraphics
java.lang.Object
javax.swing.AbstractAction
org.tigris.gef.undo.UndoableAction
org.argouml.uml.ui.ActionSaveAllGraphics
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- public class ActionSaveAllGraphics
- extends org.tigris.gef.undo.UndoableAction
Wraps a CmdSaveGIF or CmdSave(E)PS to allow selection of an output file.
Introduced thanks to issue 2126. Saves diagrams only as GIFs.
TODO: Add a user choice for other formats (PNG, SVG,...)
- See Also:
- Serialized Form
ActionSaveAllGraphics
public ActionSaveAllGraphics()
- The constructor.
actionPerformed
public void actionPerformed(ActionEvent ae)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
trySave
public boolean trySave(boolean overwrite)
- Parameters:
overwrite - true if we can overwrite without asking
- Returns:
- success
trySaveDiagram
protected boolean trySaveDiagram(boolean overwrite,
Object target,
File saveDir)
- Parameters:
overwrite - true if we can overwrite without askingtarget - the diagramsaveDir - the directory to save to
- Returns:
- success
getSaveDir
protected File getSaveDir(Project p)
- Parameters:
p - the current project
- Returns:
- returns null if the user did not approve his choice