org.argouml.uml.ui
Class ActionOpenProject
java.lang.Object
javax.swing.AbstractAction
org.argouml.uml.ui.UMLAction
org.argouml.uml.ui.ActionOpenProject
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, CommandLineInterface, java.util.EventListener, java.io.Serializable
- public class ActionOpenProject
- extends UMLAction
- implements CommandLineInterface
Action that loads the project.
This will throw away the project that we were working with up to this
point so some extra caution.
- See Also:
ActionSaveProject
,
Serialized Form
Nested classes inherited from class javax.swing.AbstractAction |
|
Field Summary |
protected static org.apache.log4j.Logger |
cat
|
static java.lang.String |
separator
Deprecated. by Linus Tolke as of 0.15.4. It is not used in this class
and this class is not a file system resource interface so you should
search for another solution. |
static ActionOpenProject |
SINGLETON
Deprecated. by Linus Tolke as of 0.15.4. Use the constructor instead
to build yourself an object of your own. |
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 |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Performs the action. |
boolean |
doCommand(java.lang.String argument)
Execute this action from the command line. |
void |
loadProject(java.net.URL url)
Loads the project file and opens all kinds of error message windows
if it doesn't work for some reason. |
private void |
showErrorPane(java.lang.String message)
Open a Message Dialog with an error message. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cat
protected static org.apache.log4j.Logger cat
SINGLETON
public static ActionOpenProject SINGLETON
- Deprecated. by Linus Tolke as of 0.15.4. Use the constructor instead
to build yourself an object of your own.
separator
public static final java.lang.String separator
- Deprecated. by Linus Tolke as of 0.15.4. It is not used in this class
and this class is not a file system resource interface so you should
search for another solution.
ActionOpenProject
public ActionOpenProject()
- Constructor for this action.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Performs the action.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class UMLAction
- Parameters:
e
- an event
loadProject
public void loadProject(java.net.URL url)
- Loads the project file and opens all kinds of error message windows
if it doesn't work for some reason. In those cases it preserves
the old project.
- Parameters:
url
- the url to open.
showErrorPane
private void showErrorPane(java.lang.String message)
- Open a Message Dialog with an error message.
- Parameters:
message
- the message to display.
doCommand
public boolean doCommand(java.lang.String argument)
- Execute this action from the command line.
- Specified by:
doCommand
in interface CommandLineInterface
- Parameters:
argument
- is the url of the project we load.
- Returns:
- true if it is OK.
- See Also:
CommandLineInterface.doCommand(String)