Class TableRendererAction
- java.lang.Object
-
- org.eclipse.emfforms.spi.swt.table.action.AbstractTableAction<org.eclipse.jface.viewers.AbstractTableViewer>
-
- org.eclipse.emf.ecp.view.spi.table.swt.action.TableRendererAction
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
AbstractMoveRowAction
,AddRowAction
,DuplicateRowAction
,RemoveRowAction
public abstract class TableRendererAction extends AbstractTableAction<org.eclipse.jface.viewers.AbstractTableViewer>
Common base class for table renderer actions.- Since:
- 1.18
- Author:
- Mat Hansen
-
-
Constructor Summary
Constructors Constructor Description TableRendererAction(TableRendererViewerActionContext actionContext)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableRendererViewerActionContext
getActionContext()
Returns theViewerActionContext
.protected VTableControl
getVTableControl()
Returns the table control VElement.protected boolean
isTableDisabled()
Returns true when the table is disabled.-
Methods inherited from class org.eclipse.emfforms.spi.swt.table.action.AbstractTableAction
getEditingDomainForContainment, getNumberOfVisibleRows, getTableViewer, isLowerBoundReached, isOrdered, isUpperBoundReached, isViewerSelectionInvalid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emfforms.spi.swt.table.action.Action
canExecute, execute, getId
-
-
-
-
Constructor Detail
-
TableRendererAction
public TableRendererAction(TableRendererViewerActionContext actionContext)
The constructor.- Parameters:
actionContext
- theViewerActionContext
-
-
Method Detail
-
isTableDisabled
protected boolean isTableDisabled()
Returns true when the table is disabled. Note: EMF Forms distinguishes between read-only and enabled. Read-only is a declarative state defined by the view model and cannot be overwritten during runtime whereas the enabled state can. Therefore we only have to check for the enabled state here.- Overrides:
isTableDisabled
in classAbstractTableAction<org.eclipse.jface.viewers.AbstractTableViewer>
- Returns:
- true when the table is disabled, false otherwise
-
getActionContext
public TableRendererViewerActionContext getActionContext()
Description copied from class:AbstractTableAction
Returns theViewerActionContext
.- Overrides:
getActionContext
in classAbstractTableAction<org.eclipse.jface.viewers.AbstractTableViewer>
- Returns:
- the context the
ViewerActionContext
-
getVTableControl
protected VTableControl getVTableControl()
Returns the table control VElement.- Returns:
- the
VTableControl
-
-