Search in sources :

Example 1 with SWTBotCheckBox

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox in project linuxtools by eclipse.

the class SourceDisassemblyViewTest method setPerfOptions.

@Override
protected void setPerfOptions(SWTWorkbenchBot bot) {
    SWTBotCheckBox chkBox = bot.checkBox("Show Source Disassembly View");
    assertNotNull(chkBox);
    chkBox.select();
}
Also used : SWTBotCheckBox(org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox)

Example 2 with SWTBotCheckBox

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox in project linuxtools by eclipse.

the class StatComparisonViewTest method setPerfOptions.

@Override
protected void setPerfOptions(SWTWorkbenchBot bot) {
    SWTBotCheckBox chkBox = bot.checkBox("Show Stat View");
    assertNotNull(chkBox);
    chkBox.select();
    SWTBotSpinner spinner = bot.spinner();
    assertNotNull(spinner);
    spinner.setSelection(3);
}
Also used : SWTBotCheckBox(org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox) SWTBotSpinner(org.eclipse.swtbot.swt.finder.widgets.SWTBotSpinner)

Example 3 with SWTBotCheckBox

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox in project linuxtools by eclipse.

the class StatViewTest method setPerfOptions.

@Override
protected void setPerfOptions(SWTWorkbenchBot bot) {
    SWTBotCheckBox chkBox = bot.checkBox("Show Stat View");
    assertNotNull(chkBox);
    chkBox.select();
    SWTBotSpinner spinner = bot.spinner();
    assertNotNull(spinner);
    spinner.setSelection(STAT_RUNS);
}
Also used : SWTBotCheckBox(org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox) SWTBotSpinner(org.eclipse.swtbot.swt.finder.widgets.SWTBotSpinner)

Example 4 with SWTBotCheckBox

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox in project eclipse-pmd by acanda.

the class EnablePMDTest method enablePMD.

@Test
public void enablePMD() {
    SWTBotShell dialog = JavaProjectClient.openPMDPropertyDialog(PROJECT_NAME);
    SWTBotCheckBox enablePMDCheckBox = dialog.bot().checkBoxWithId(SWTBotID.ENABLE_PMD.name());
    assertFalse("PMD should be disabled by default", enablePMDCheckBox.isChecked());
    enablePMDCheckBox.select();
    dialog.bot().button("OK").click();
    bot().waitUntil(org.eclipse.swtbot.swt.finder.waits.Conditions.shellCloses(dialog));
    dialog = JavaProjectClient.openPMDPropertyDialog(PROJECT_NAME);
    enablePMDCheckBox = dialog.bot().checkBoxWithId(SWTBotID.ENABLE_PMD.name());
    assertTrue("PMD should be enabled", enablePMDCheckBox.isChecked());
    dialog.bot().button("OK").click();
    bot().waitUntil(org.eclipse.swtbot.swt.finder.waits.Conditions.shellCloses(dialog));
}
Also used : SWTBotCheckBox(org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox) SWTBotShell(org.eclipse.swtbot.swt.finder.widgets.SWTBotShell) Test(org.junit.Test)

Example 5 with SWTBotCheckBox

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox in project linuxtools by eclipse.

the class ReportComparisonViewTest method setPerfOptions.

@Override
protected void setPerfOptions(SWTWorkbenchBot bot) {
    SWTBotCheckBox chkBox = bot.checkBox("Show Source Disassembly View");
    assertNotNull(chkBox);
    chkBox.select();
}
Also used : SWTBotCheckBox(org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox)

Aggregations

SWTBotCheckBox (org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox)5 SWTBotSpinner (org.eclipse.swtbot.swt.finder.widgets.SWTBotSpinner)2 SWTBotShell (org.eclipse.swtbot.swt.finder.widgets.SWTBotShell)1 Test (org.junit.Test)1