@OpenApiAll public class SingleModelElementAction extends MDAction implements ISingleModelElementAction
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Constructor and Description |
---|
SingleModelElementAction(java.lang.String actionID,
java.lang.String actionName,
javax.swing.KeyStroke stroke,
java.lang.String group)
Constructor for ModelElementAction.
|
Modifier and Type | Method and Description |
---|---|
protected Element |
getElement()
Returns data from selected node.
|
ModelElementProvider |
getProvider()
Gets the provider.
|
void |
setProvider(ModelElementProvider provider)
Sets the provider.
|
actionPerformed, updateState
accept, addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, clone, compareTo, createMenuItem, equals, firePropertyChange, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toString
public SingleModelElementAction(@CheckForNull java.lang.String actionID, java.lang.String actionName, @CheckForNull javax.swing.KeyStroke stroke, @CheckForNull java.lang.String group)
actionID
- action idactionName
- action namestroke
- strokegroup
- group@CheckForNull protected Element getElement()
public ModelElementProvider getProvider()
getProvider
in interface ISingleModelElementAction
public void setProvider(ModelElementProvider provider)
setProvider
in interface ISingleModelElementAction
provider
- The provider to set