public class SaveAsAction extends CayenneAction
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.cayenne.modeler.action.ProjectOpener |
fileChooser |
alwaysOn, applicationchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Modifier | Constructor and Description |
|---|---|
|
SaveAsAction(Application application) |
protected |
SaveAsAction(String name,
Application application) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enableForPath(ConfigurationNode object)
Returns
true if path contains a Project object and the
project is modified. |
KeyStroke |
getAcceleratorKey()
Returns keyboard shortcut for this action.
|
static String |
getActionName() |
void |
performAction(ActionEvent e)
This method is synchronized to prevent problems on double-clicking
"save".
|
void |
performAction(int warningLevel) |
protected boolean |
saveAll()
Saves project and related files.
|
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, getApplication, getCurrentProject, getIconName, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerprotected org.apache.cayenne.modeler.action.ProjectOpener fileChooser
public SaveAsAction(Application application)
protected SaveAsAction(String name, Application application)
public static String getActionName()
public KeyStroke getAcceleratorKey()
CayenneActionnull.getAcceleratorKey in class CayenneActionprotected boolean saveAll()
throws Exception
Exceptionpublic void performAction(ActionEvent e)
performAction in class CayenneActionpublic void performAction(int warningLevel)
public boolean enableForPath(ConfigurationNode object)
true if path contains a Project object and the
project is modified.enableForPath in class CayenneActionCopyright © 2001–2015 Apache Cayenne. All rights reserved.