Search in sources :

Example 1 with TickUpdateHandlerFixture

use of org.eclipse.nebula.widgets.nattable.test.fixture.TickUpdateHandlerFixture in project nebula.widgets.nattable by eclipse.

the class TickUpdateCommandHandlerTest method setup.

@Before
public void setup() {
    DataLayerFixture bodyDataLayer = new DataLayerFixture();
    this.selectionLayer = new SelectionLayer(bodyDataLayer);
    this.selectionLayer.setSelectedCell(1, 1);
    this.testConfigRegistry = new ConfigRegistry();
    this.testConfigRegistry.registerConfigAttribute(TickUpdateConfigAttributes.UPDATE_HANDLER, new TickUpdateHandlerFixture());
    this.testConfigRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITABLE_RULE, IEditableRule.ALWAYS_EDITABLE);
    registerCellStyleAccumulators(bodyDataLayer);
    this.commandHandler = new TickUpdateCommandHandler(this.selectionLayer);
}
Also used : ConfigRegistry(org.eclipse.nebula.widgets.nattable.config.ConfigRegistry) SelectionLayer(org.eclipse.nebula.widgets.nattable.selection.SelectionLayer) DataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture) TickUpdateHandlerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.TickUpdateHandlerFixture) Before(org.junit.Before)

Aggregations

ConfigRegistry (org.eclipse.nebula.widgets.nattable.config.ConfigRegistry)1 SelectionLayer (org.eclipse.nebula.widgets.nattable.selection.SelectionLayer)1 TickUpdateHandlerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.TickUpdateHandlerFixture)1 DataLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture)1 Before (org.junit.Before)1