public class ActionButton
extends java.lang.Object
| Constructor and Description |
|---|
ActionButton(EEFWidgetAction action,
org.eclipse.swt.widgets.Composite parent,
EEFWidgetFactory widgetFactory,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter,
org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionListener(org.eclipse.swt.events.SelectionAdapter listener)
Add a selection listener to the button.
|
EEFWidgetAction |
getAction()
Get the action.
|
org.eclipse.swt.widgets.Control |
getButton()
Get the button.
|
void |
removeSelectionListener()
Remove the selection listener.
|
void |
setEnabled(boolean isEnabled)
Sets the enablement of the action button.
|
public ActionButton(EEFWidgetAction action, org.eclipse.swt.widgets.Composite parent, EEFWidgetFactory widgetFactory, org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter, org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager)
action - Widget actionparent - Parent compositewidgetFactory - Widget factoryinterpreter - InterpretervariableManager - Variable managerpublic void setEnabled(boolean isEnabled)
isEnabled - true to set the button as enabled, false otherwisepublic void addSelectionListener(org.eclipse.swt.events.SelectionAdapter listener)
listener - Selection listenerpublic void removeSelectionListener()
public EEFWidgetAction getAction()
public org.eclipse.swt.widgets.Control getButton()