Search in sources :

Example 1 with ColumnCategoriesModelFixture

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

the class ChooseColumnsFromCategoriesCommandHandlerTest method setup.

@Before
public void setup() {
    this.hideShowLayerFixture = new ColumnHideShowLayerFixture();
    this.commandHandler = new ChooseColumnsFromCategoriesCommandHandler(this.hideShowLayerFixture, new ColumnHeaderLayerFixture(), new DataLayerFixture(), new ColumnCategoriesModelFixture());
}
Also used : ColumnHeaderLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHeaderLayerFixture) ColumnHideShowLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHideShowLayerFixture) DataLayerFixture(org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture) ColumnCategoriesModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.ColumnCategoriesModelFixture) Before(org.junit.Before)

Example 2 with ColumnCategoriesModelFixture

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

the class Listener method main.

public static void main(String[] args) {
    ColumnCategoriesDialog dialog = new ColumnCategoriesDialog(new Shell(), new ColumnCategoriesModelFixture(), ColumnEntriesFixture.getEntriesWithEvenIndexes(), ColumnEntriesFixture.getEntriesWithOddIndexes());
    dialog.addListener(new Listener());
    dialog.open();
}
Also used : Shell(org.eclipse.swt.widgets.Shell) IColumnCategoriesDialogListener(org.eclipse.nebula.widgets.nattable.columnCategories.IColumnCategoriesDialogListener) ColumnCategoriesDialog(org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog) ColumnCategoriesModelFixture(org.eclipse.nebula.widgets.nattable.test.fixture.ColumnCategoriesModelFixture)

Aggregations

ColumnCategoriesModelFixture (org.eclipse.nebula.widgets.nattable.test.fixture.ColumnCategoriesModelFixture)2 IColumnCategoriesDialogListener (org.eclipse.nebula.widgets.nattable.columnCategories.IColumnCategoriesDialogListener)1 ColumnCategoriesDialog (org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog)1 ColumnHeaderLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHeaderLayerFixture)1 ColumnHideShowLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.ColumnHideShowLayerFixture)1 DataLayerFixture (org.eclipse.nebula.widgets.nattable.test.fixture.layer.DataLayerFixture)1 Shell (org.eclipse.swt.widgets.Shell)1 Before (org.junit.Before)1