org.argouml.uml.ui
Class ActionSaveGraphics

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.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

Field Summary
 
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
ActionSaveGraphics()
          Constructor for this action.
 
Method Summary
 void actionPerformed(ActionEvent ae)
           
 boolean doCommand(String argument)
          Execute this action from the command line.
 
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
 

Constructor Detail

ActionSaveGraphics

public ActionSaveGraphics()
Constructor for this action.

Method Detail

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)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook