Class CellReadOnlyTesterHelper
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.table.swt.CellReadOnlyTesterHelper
-
public final class CellReadOnlyTesterHelper extends java.lang.Object
Helper class which collects the cell testers and allows to iterate over all to check whether a cell should be read only.- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CellReadOnlyTesterHelper
getInstance()
The CellReadOnlyTesterHelper instance.boolean
isReadOnly(VTableControl vTableControl, org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
Check allECPCellReadOnlyTester
for the cell.void
registerCellReadOnlyTester(ECPCellReadOnlyTester tester)
Register anECPCellReadOnlyTester
programmatically.
-
-
-
Method Detail
-
getInstance
public static CellReadOnlyTesterHelper getInstance()
The CellReadOnlyTesterHelper instance.- Returns:
- the CellReadOnlyTesterHelper instance
-
registerCellReadOnlyTester
public void registerCellReadOnlyTester(ECPCellReadOnlyTester tester)
Register anECPCellReadOnlyTester
programmatically.- Parameters:
tester
- theECPCellReadOnlyTester
to register
-
isReadOnly
public boolean isReadOnly(VTableControl vTableControl, org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
Check allECPCellReadOnlyTester
for the cell.- Parameters:
vTableControl
- theVTableControl
setting
- theEStructuralFeature.Setting
of the cell- Returns:
- true if any
ECPCellReadOnlyTester
wants the cell to be readonly false otherwise.
-
-