Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTable.pressShortcut()


        boolean isCellEditorActive = false;

        for (int i = 0; i < logTable.rowCount(); i++) {
            logTable.click(i, 0);
            // try to edit cell by F2 key
            logTable.pressShortcut(getKey(SWT.F2));
            waitForCellEditorState(logTableViewer, false);
            isCellEditorActive = logTableViewer.isCellEditorActive();
            assertFalse(isCellEditorActive);

            // try to edit first cell by mouse doubleclick
View Full Code Here


        filterTable.click(0, 0);

        // TODO: bot can`t push the SWT.Insert key while running this test. It is very disheartening.
        for (int i = 0; i < 3; i++) {
            filterTable.pressShortcut(getKey(SWT.INSERT));
        }

        boolean insertionByKeyWorks = (filterTable.rowCount() == 4);

        for (int i = 0; i < 4; i++) {
View Full Code Here

        boolean insertionByKeyWorks = (filterTable.rowCount() == 4);

        for (int i = 0; i < 4; i++) {
            // filterTable.getTableItem(0).select(); // select a first filter
            filterTable.pressShortcut(getKey(SWT.DEL));
        }

        boolean delitionByKeyWorks = (filterTable.rowCount() == 0);

        // setPlaybackDelay(0);
View Full Code Here

        case UITestConstants.MOUSE_DOUBLE_CLICK_ACTIVATION:
            table.doubleClick(row, column);
            break;
        case UITestConstants.F2_KEY_ACTIVATION:
            table.click(row, column);
            table.pressShortcut(getKey(SWT.F2));
            break;
        default:
            throw new IllegalArgumentException("Can`t support the specified editor activation type.");
        }
        waitForCellEditorState(viewer, true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.