public class ImportEOModelAction extends CayenneAction
| Modifier and Type | Field and Description |
|---|---|
protected JFileChooser |
eoModelChooser |
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| Constructor and Description |
|---|
ImportEOModelAction(Application application) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDataMap(DataMap map,
DataMap currentMap)
Adds DataMap into the project.
|
static String |
getActionName() |
JFileChooser |
getEOModelChooser()
Returns EOModel chooser.
|
String |
getIconName()
Returns the name of the icon that should be used for buttons.
|
protected void |
importEOModel()
Allows user to select an EOModel, then imports it as a DataMap.
|
protected void |
loadDataNode(Map eomodelIndex) |
void |
performAction(ActionEvent event)
Subclasses must implement this method instead of
actionPerformed to
allow for exception handling. |
actionPerformed, buildButton, buildCheckBoxMenu, buildMenu, createIcon, enableForPath, getAcceleratorKey, getApplication, getCurrentProject, getKey, getProjectController, isAlwaysOn, setAlwaysOn, setEnabled, setNameaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListenerprotected JFileChooser eoModelChooser
public ImportEOModelAction(Application application)
public static String getActionName()
public String getIconName()
CayenneActionRESOURCE_PATH. Default implementation returns
null.getIconName in class CayenneActionpublic void performAction(ActionEvent event)
CayenneActionactionPerformed to
allow for exception handling.performAction in class CayenneActionprotected void importEOModel()
protected void loadDataNode(Map eomodelIndex)
protected void addDataMap(DataMap map, DataMap currentMap)
public JFileChooser getEOModelChooser()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.