org.argouml.uml.ui
Class ActionSaveGraphics
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.ActionSaveGraphics
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, CommandLineInterface, EventListener, Serializable
- public class ActionSaveGraphics
- extends AbstractAction
- implements CommandLineInterface
Wraps a CmdSaveGIF or CmdSave(E)PS to allow selection of an output file.
- See Also:
- Serialized Form
ActionSaveGraphics
public ActionSaveGraphics()
- Constructor for this action.
actionPerformed
public void actionPerformed(ActionEvent ae)
- Specified by:
actionPerformed in interface ActionListener
- See Also:
ActionListener.actionPerformed(ActionEvent)
doCommand
public boolean doCommand(String argument)
- Execute this action from the command line.
TODO: The underlying GEF library relies on Acme that doesn't allow
us to create these files unless there is a window showing. For this
reason I have had to split the performing of commands in
Main.main(String[]) so that we can,
by not supplying the -batch option, run these commands
with the window showing. Hopefully this can eventually be fixed.
- Specified by:
doCommand in interface CommandLineInterface
- Parameters:
argument - is the file name that we save to.
- Returns:
- true if it is OK.
- See Also:
CommandLineInterface.doCommand(String)