Search in sources :

Example 1 with ColumnCategoriesDialog

use of org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog in project nebula.widgets.nattable by eclipse.

the class ChooseColumnsFromCategoriesCommandHandler method doCommand.

@Override
protected boolean doCommand(ChooseColumnsFromCategoriesCommand command) {
    this.dialog = new ColumnCategoriesDialog(command.getShell(), this.model, getHiddenColumnEntries(this.columnHideShowLayer, this.columnHeaderLayer, this.columnHeaderDataLayer), getVisibleColumnsEntries(this.columnHideShowLayer, this.columnHeaderLayer, this.columnHeaderDataLayer));
    this.dialog.addListener(this);
    this.dialog.open();
    return true;
}
Also used : ColumnCategoriesDialog(org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog)

Example 2 with ColumnCategoriesDialog

use of org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog 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

ColumnCategoriesDialog (org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog)2 IColumnCategoriesDialogListener (org.eclipse.nebula.widgets.nattable.columnCategories.IColumnCategoriesDialogListener)1 ColumnCategoriesModelFixture (org.eclipse.nebula.widgets.nattable.test.fixture.ColumnCategoriesModelFixture)1 Shell (org.eclipse.swt.widgets.Shell)1