Examples of SWTBotTable


Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotTable

     * @see MOUSE_CLICK_ACTIVATION
     */
    protected void startEditing(final TableViewer viewer, final int row, final int column,
            final int editorActivationType) {

        final SWTBotTable table = new SWTBotTable(viewer.getTable());

        switch (editorActivationType) {
        case UITestConstants.MOUSE_CLICK_ACTIVATION:
            table.click(row, column);
            break;
        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.