Search in sources :

Example 6 with InitializeClientAreaCommandFixture

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

the class SelectionDragModeTest method setup.

@Before
public void setup() {
    this.gridLayer = new DummyGridLayerStack();
    this.natTable = new NatTable(new Shell(Display.getDefault()), this.gridLayer);
    this.natTable.setSize(400, 400);
    this.natTable.doCommand(new InitializeClientAreaCommandFixture());
    this.dragMode = new CellSelectionDragMode();
    Event event = new Event();
    event.widget = new Shell();
    event.x = 100;
    event.y = 100;
    this.mouseEvent = new MouseEvent(event);
    this.listener = new LayerListenerFixture();
    this.gridLayer.addLayerListener(this.listener);
}
Also used : Shell(org.eclipse.swt.widgets.Shell) InitializeClientAreaCommandFixture(org.eclipse.nebula.widgets.nattable.test.fixture.InitializeClientAreaCommandFixture) MouseEvent(org.eclipse.swt.events.MouseEvent) DummyGridLayerStack(org.eclipse.nebula.widgets.nattable.layer.stack.DummyGridLayerStack) Event(org.eclipse.swt.widgets.Event) MouseEvent(org.eclipse.swt.events.MouseEvent) ILayerEvent(org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent) NatTable(org.eclipse.nebula.widgets.nattable.NatTable) LayerListenerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.LayerListenerFixture) Before(org.junit.Before)

Example 7 with InitializeClientAreaCommandFixture

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

the class RowHeaderSelectionTest method setUp.

@Before
public void setUp() {
    this.gridLayer = new GridLayerFixture();
    this.gridLayer.doCommand(new InitializeClientAreaCommandFixture());
}
Also used : InitializeClientAreaCommandFixture(org.eclipse.nebula.widgets.nattable.test.fixture.InitializeClientAreaCommandFixture) GridLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.GridLayerFixture) Before(org.junit.Before)

Aggregations

InitializeClientAreaCommandFixture (org.eclipse.nebula.widgets.nattable.test.fixture.InitializeClientAreaCommandFixture)7 GridLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.GridLayerFixture)5 Before (org.junit.Before)5 DefaultGridLayer (org.eclipse.nebula.widgets.nattable.grid.layer.DefaultGridLayer)2 IClientAreaProvider (org.eclipse.nebula.widgets.nattable.util.IClientAreaProvider)2 ViewportLayer (org.eclipse.nebula.widgets.nattable.viewport.ViewportLayer)2 Rectangle (org.eclipse.swt.graphics.Rectangle)2 Test (org.junit.Test)2 NatTable (org.eclipse.nebula.widgets.nattable.NatTable)1 CompositeFreezeLayer (org.eclipse.nebula.widgets.nattable.freeze.CompositeFreezeLayer)1 FreezeLayer (org.eclipse.nebula.widgets.nattable.freeze.FreezeLayer)1 GridLayer (org.eclipse.nebula.widgets.nattable.grid.layer.GridLayer)1 ColumnHideShowLayer (org.eclipse.nebula.widgets.nattable.hideshow.ColumnHideShowLayer)1 ILayer (org.eclipse.nebula.widgets.nattable.layer.ILayer)1 ILayerEvent (org.eclipse.nebula.widgets.nattable.layer.event.ILayerEvent)1 DummyGridLayerStack (org.eclipse.nebula.widgets.nattable.layer.stack.DummyGridLayerStack)1 ColumnReorderLayer (org.eclipse.nebula.widgets.nattable.reorder.ColumnReorderLayer)1 SelectionLayer (org.eclipse.nebula.widgets.nattable.selection.SelectionLayer)1 TestLayer (org.eclipse.nebula.widgets.nattable.test.fixture.TestLayer)1 LayerListenerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.LayerListenerFixture)1