Package org.eclipse.nebula.widgets.nattable.style.editor

Examples of org.eclipse.nebula.widgets.nattable.style.editor.ColumnStyleEditorDialog


        // Column style
        Style clickedCellStyle = (Style) configRegistry.getConfigAttribute(
                CELL_STYLE, NORMAL, configLabels.getLabels());

        dialog = new ColumnStyleEditorDialog(Display.getCurrent()
                .getActiveShell(), clickedCellStyle);
        dialog.open();

        if (dialog.isCancelPressed()) {
            return true;
View Full Code Here


public class ColumnStyleEditorDialogRunner {

    public static void main(String[] args) throws Exception {
        Shell shell = new Shell();
        ColumnStyleEditorDialog dialog = new ColumnStyleEditorDialog(shell,
                new Style());
        dialog.open();
        System.out.println("Style: " + dialog.getNewColumnCellStyle());
    }
View Full Code Here

                selectionLayer, labelAccumulatorFixture, configRegistryFixture);
    }

    @Test
    public void doCommand() throws Exception {
        handlerUnderTest.dialog = new ColumnStyleEditorDialog(new Shell(),
                new CellStyleFixture());
        handlerUnderTest.applySelectedStyleToColumns(commandFixture,
                new int[] { 0 });

        Style selectedStyle = (Style) configRegistryFixture.getConfigAttribute(
View Full Code Here

    }

    @Test
    public void shouldRemoveLabelFromPersistenceIfStyleIsCleared()
            throws Exception {
        handlerUnderTest.dialog = new ColumnStyleEditorDialog(new Shell(), null);
        handlerUnderTest.applySelectedStyleToColumns(commandFixture,
                new int[] { 0 });

        Style selectedStyle = (Style) configRegistryFixture.getConfigAttribute(
                CELL_STYLE, NORMAL, handlerUnderTest.getConfigLabel(0));
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.style.editor.ColumnStyleEditorDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.