use of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate in project nebula.widgets.nattable by eclipse.
the class EditUtilsTest method testIsCellEditableWithSingleSelectionEnableEditing.
@Test
public void testIsCellEditableWithSingleSelectionEnableEditing() {
this.natTable.enableEditingOnAllCells();
this.selectionLayer.selectCell(1, 1, false, false);
PositionCoordinate coord = new PositionCoordinate(this.selectionLayer, 1, 1);
assertTrue(EditUtils.isCellEditable(this.selectionLayer, this.natTable.getConfigRegistry(), coord));
}
use of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate in project nebula.widgets.nattable by eclipse.
the class RowSelectionEditUtilsTest method testIsCellEditableWithSingleSelectionEnableEditing.
@Test
public void testIsCellEditableWithSingleSelectionEnableEditing() {
this.natTable.enableEditingOnAllCells();
this.selectionLayer.selectCell(1, 1, false, false);
PositionCoordinate coord = new PositionCoordinate(this.selectionLayer, 1, 1);
assertTrue(EditUtils.isCellEditable(this.selectionLayer, this.natTable.getConfigRegistry(), coord));
}
use of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate in project nebula.widgets.nattable by eclipse.
the class RowSelectionEditUtilsTest method testIsCellEditableWithSingleSelection.
@Test
public void testIsCellEditableWithSingleSelection() {
this.selectionLayer.selectCell(1, 1, false, false);
PositionCoordinate coord = new PositionCoordinate(this.selectionLayer, 1, 1);
assertFalse(EditUtils.isCellEditable(this.selectionLayer, this.natTable.getConfigRegistry(), coord));
}
use of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate in project nebula.widgets.nattable by eclipse.
the class RowSelectionEditUtilsTest method testIsCellEditableWithoutSelection.
@Test
public void testIsCellEditableWithoutSelection() {
PositionCoordinate coord = new PositionCoordinate(this.selectionLayer, 0, 0);
assertFalse(EditUtils.isCellEditable(this.selectionLayer, this.natTable.getConfigRegistry(), coord));
}
use of org.eclipse.nebula.widgets.nattable.coordinate.PositionCoordinate in project nebula.widgets.nattable by eclipse.
the class PositionCoordinateTest method setup.
@Before
public void setup() {
ILayer layer = new DataLayerFixture();
this.p1 = new PositionCoordinate(layer, 1, 2);
this.p2 = new PositionCoordinate(layer, 1, 2);
}
Aggregations