|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--org.argouml.uml.ui.UMLAction | +--org.argouml.uml.ui.ActionOpenProject
Action that loads the project. This will throw away the project that we were working with up to this point so some extra caution.
ActionSaveProject
,
Serialized FormField Summary | |
---|---|
protected static 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 org.argouml.uml.ui.UMLAction |
---|
HAS_ICON, NO_ICON |
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 | |
---|---|
ActionOpenProject()
Constructor for this action. |
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 org.argouml.uml.ui.UMLAction |
---|
getMnemonic, getShortcut, getValue, isEnabled, markNeedsSave, putValue, shouldBeEnabled, stripJunk, updateEnabled, updateEnabled |
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 |
Field Detail |
protected static Logger cat
public static ActionOpenProject SINGLETON
public static final java.lang.String separator
Constructor Detail |
public ActionOpenProject()
Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class UMLAction
e
- an eventpublic void loadProject(java.net.URL url)
url
- the url to open.private void showErrorPane(java.lang.String message)
message
- the message to display.public boolean doCommand(java.lang.String argument)
doCommand
in interface CommandLineInterface
argument
- is the url of the project we load.
CommandLineInterface.doCommand(String)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |