Examples of pressShortcut()


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

        projectTree.contextMenu("Refresh").click();
        SWTUtils.sleep(2000);
        projectTree.contextMenu("Delete").click();
        SWTBotShell shell = bot.shell("Delete Resources");
        shell.activate();
        shell.pressShortcut(SWT.ALT, 'D');
        bot.button("OK").click();
        projectTree = null;
    }
   
}
View Full Code Here

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

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

        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

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

        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

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

        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

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

        startEditing(viewer, row, column, editorActivationType);

        for (char keyChar : text.toLowerCase().toCharArray()) {
            if (isAlphanumericKey(keyChar)) {
                item.pressShortcut(getKey(keyChar));
            } else {
                throw new ParseException("Can`t parse key: \"" + keyChar + "\" - it is not an alphanumeric key!");
            }
        }
    }
View Full Code Here

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

      }
    });

    SWTBotText text = bot.text("myConcreteClass");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
View Full Code Here

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

      }
    });

    SWTBotText text = bot.text("propertyChangeTracker");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
View Full Code Here

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

      }
    });

    SWTBotText text = bot.text("com.test.MyConcreteClass");
    text.setText("com");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
View Full Code Here

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

      }
    });

    SWTBotText text = bot.text("setterMethod");
    text.setText("");
    text.pressShortcut(SWT.CTRL, ' ');

    SWTBotShell shell = bot.activeShell();
    assertTrue(shell.isOpen()); // Weak test?
  }
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.