public abstract class AddRowAction extends TableRendererAction
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_ID
The ID of this action.
|
static String |
DEFAULT_KEYBINDING
The default key binding of this action.
|
Constructor and Description |
---|
AddRowAction(TableRendererViewerActionContext actionContext)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addRowLegacy(org.eclipse.emf.ecore.EClass eClass,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
org.eclipse.emf.ecore.EObject eObject)
Delegate method to legacy addRow() implementation.
|
boolean |
canExecute()
Verify that this action can be executed given the current action context.
|
void |
execute()
Execute the action.
|
String |
getId()
Return the ID for this action.
|
getActionContext, getVTableControl, isTableDisabled
getEditingDomainForContainment, getNumberOfVisibleRows, getTableViewer, isLowerBoundReached, isOrdered, isUpperBoundReached, isViewerSelectionInvalid
public static final String ACTION_ID
public static final String DEFAULT_KEYBINDING
public AddRowAction(TableRendererViewerActionContext actionContext)
actionContext
- the ViewerActionContext
public String getId()
Action
public void execute()
Action
public abstract void addRowLegacy(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, org.eclipse.emf.ecore.EObject eObject)
eObject
- the EObject
eStructuralFeature
- the EStructuralFeature
eClass
- the EClass
public boolean canExecute()
Action
Copyright © 2019. All rights reserved.