Search in sources :

Example 1 with WaitForRefactoringCondition

use of org.eclipse.xtend.ide.tests.WaitForRefactoringCondition in project xtext-xtend by eclipse.

the class AbstractRefactoringSwtBotTest method undo.

public void undo(final SWTBotEclipseEditor editor) {
    editor.setFocus();
    editor.pressShortcut(SWT.MOD1, 'Z');
    AbstractRefactoringSwtBotTest.bot.shell("Undo").activate();
    AbstractRefactoringSwtBotTest.bot.button("OK").click();
    SWTBot _sWTBot = new SWTBot();
    WaitForRefactoringCondition _waitForRefactoringCondition = new WaitForRefactoringCondition(editor, true);
    _sWTBot.waitUntil(_waitForRefactoringCondition, 15000);
}
Also used : SWTBot(org.eclipse.swtbot.swt.finder.SWTBot) WaitForRefactoringCondition(org.eclipse.xtend.ide.tests.WaitForRefactoringCondition)

Example 2 with WaitForRefactoringCondition

use of org.eclipse.xtend.ide.tests.WaitForRefactoringCondition in project xtext-xtend by eclipse.

the class AbstractRefactoringSwtBotTest method waitForRefactoring.

protected void waitForRefactoring(final SWTBotEclipseEditor editor) {
    SWTBot _sWTBot = new SWTBot();
    WaitForRefactoringCondition _waitForRefactoringCondition = new WaitForRefactoringCondition(editor, false);
    _sWTBot.waitUntil(_waitForRefactoringCondition, 15000);
}
Also used : SWTBot(org.eclipse.swtbot.swt.finder.SWTBot) WaitForRefactoringCondition(org.eclipse.xtend.ide.tests.WaitForRefactoringCondition)

Aggregations

SWTBot (org.eclipse.swtbot.swt.finder.SWTBot)2 WaitForRefactoringCondition (org.eclipse.xtend.ide.tests.WaitForRefactoringCondition)2