Search in sources :

Example 1 with RunsInEDT

use of org.fest.swing.annotation.RunsInEDT in project android by JetBrains.

the class SearchTextFieldDriver method deleteText.

@RunsInEDT
public void deleteText(SearchTextField textBox) {
    focusAndWaitForFocusGain(textBox.getTextEditor());
    execute(new GuiTask() {

        @Override
        protected void executeInEDT() throws Throwable {
            textBox.getTextEditor().selectAll();
        }
    });
    robot.pressAndReleaseKey(KeyEvent.VK_DELETE);
}
Also used : GuiTask(org.fest.swing.edt.GuiTask) RunsInEDT(org.fest.swing.annotation.RunsInEDT)

Aggregations

RunsInEDT (org.fest.swing.annotation.RunsInEDT)1 GuiTask (org.fest.swing.edt.GuiTask)1