本文整理汇总了Java中org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox.click方法的典型用法代码示例。如果您正苦于以下问题:Java SWTBotCheckBox.click方法的具体用法?Java SWTBotCheckBox.click怎么用?Java SWTBotCheckBox.click使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox
的用法示例。
在下文中一共展示了SWTBotCheckBox.click方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setFailed
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void setFailed(SWTBotShell page) {
SWTBotCheckBox button = page.bot().checkBoxWithId(
org.gw4e.eclipse.wizard.runasmanual.StepPage.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,
org.gw4e.eclipse.wizard.runasmanual.StepPage.GW4E_STEP_PAGE_BUTTON_FAILED_ID);
if (!button.isChecked())
button.click();
}
示例2: showConsolePreference
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
private void showConsolePreference(SWTBotShell shell) {
SWTBotTree tree = bot.tree().select("Run/Debug");
SWTBotTreeItem item = tree.getTreeItem("Console");
item.click();
SWTBotCheckBox button = bot.checkBoxWithLabel("Limit console output");
if (button.isChecked()) button.click();
}
示例3: showConsolePreference
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
private void showConsolePreference(SWTBotShell shell) {
SWTBotTree tree = bot.tree().select("Run/Debug");
tree.expandNode("Run/Debug", true);
SWTBotTreeItem[] items = tree.getAllItems();
for (SWTBotTreeItem swtBotTreeItem : items) {
if (swtBotTreeItem.getText().equalsIgnoreCase("Run/Debug")) {
swtBotTreeItem.getNode("Console").select();
}
}
try {
int max = 10;
for (int i = 0; i < max; i++) {
SWTBotCheckBox button = bot.checkBox(i);
if (button.getText().equalsIgnoreCase("&Limit console output")) {
if (button.isChecked()) {
button.click();
break;
}
}
}
} catch (Exception e) {
}
String name = "OK";
if (GW4EPlatform.isEclipse47()) name = "Apply and Close";
bot.button(name).click();
}
示例4: testUncheckStopPreviousVersionButtonWhenDisabled
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
@Test
public void testUncheckStopPreviousVersionButtonWhenDisabled() {
deployPanel = createPanel(true /* requireValues */);
Button promoteButton = getButtonWithText("Promote the deployed version to receive all traffic");
Button stopButton = getButtonWithText("Stop previous version");
SWTBotCheckBox promote = new SWTBotCheckBox(promoteButton);
SWTBotCheckBox stop = new SWTBotCheckBox(stopButton);
// Initially, everything is checked and enabled.
assertTrue(promoteButton.getSelection());
assertTrue(stopButton.getSelection());
assertTrue(stopButton.getEnabled());
promote.click();
assertFalse(promoteButton.getSelection());
assertFalse(stopButton.getSelection());
assertFalse(stopButton.getEnabled());
promote.click();
assertTrue(promoteButton.getSelection());
assertTrue(stopButton.getSelection());
assertTrue(stopButton.getEnabled());
stop.click();
assertTrue(promoteButton.getSelection());
assertFalse(stopButton.getSelection());
assertTrue(stopButton.getEnabled());
promote.click();
assertFalse(promoteButton.getSelection());
assertFalse(stopButton.getSelection());
assertFalse(stopButton.getEnabled());
promote.click();
assertTrue(promoteButton.getSelection());
assertFalse(stopButton.getSelection());
assertTrue(stopButton.getEnabled());
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:40,代码来源:AppEngineDeployPreferencesPanelTest.java
示例5: testThatCheckingAddToWorkingSetSelectButtonIsEnabled
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
@Test
public void testThatCheckingAddToWorkingSetSelectButtonIsEnabled() {
openImportProjectWizardPage();
final SWTBotButton workingSetSelectButton = bot.button("Select...");
final SWTBotCheckBox addToWorkingSetCheckBox = bot.checkBox(0);
addToWorkingSetCheckBox.click();
Assert.assertTrue(workingSetSelectButton.isEnabled());
}
示例6: toggleFilterOn
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void toggleFilterOn () {
SWTBotCheckBox button = botView.bot().checkBoxWithId(OutLineComposite.GW_WIDGET_ID, OutLineComposite.GW_OUTLINE_FILTER_BUTTON);
if (button.isChecked()) return;
button.click();
}
示例7: toggleFilterOff
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void toggleFilterOff() {
SWTBotCheckBox button = botView.bot().checkBoxWithId(OutLineComposite.GW_WIDGET_ID, OutLineComposite.GW_OUTLINE_FILTER_BUTTON);
if (button.isChecked()) {
button.click();
}
}
示例8: checkEraseExistingFile
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void checkEraseExistingFile() {
SWTBotCheckBox b = bot.checkBoxWithId(GeneratorResourceUIPage.GW4E_GENERATOR_CHOICE_CHECKBOX_ID, GeneratorResourceUIPage.GW4E_GENERATOR_CHOICE_ERASE_CHECKBOX);
b.click();
}
示例9: allowBeforeAfterExecutionHook
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowBeforeAfterExecutionHook () {
SWTBotCheckBox checkButton = bot.checkBoxWithId(GW4EHookUIPage.GW4E_CONVERSION_CONTROL_ID, GW4EHookUIPage.GW4E_CONVERSION_CHOICE_GENERATE_EXECUTON_BEFORE_AFTER_CHECKBOX);
checkButton.click();
}
示例10: allowPerformanceReport
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowPerformanceReport() {
SWTBotCheckBox checkButton = bot.checkBoxWithId(GW4EHookUIPage.GW4E_CONVERSION_CONTROL_ID, GW4EHookUIPage.GW4E_CONVERSION_CHOICE_GENERATE_PERFORMNCE_REPORT_CHECKBOX);
checkButton.click();
}
示例11: allowBeforeAfterElementHook
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowBeforeAfterElementHook () {
SWTBotCheckBox checkButton = bot.checkBoxWithId(GW4EHookUIPage.GW4E_CONVERSION_CONTROL_ID, GW4EHookUIPage.GW4E_CONVERSION_CHOICE_GENERATE_ELEMENT_BEFORE_AFTER_CHECKBOX);
checkButton.click();
}
示例12: allowJUnitSmokeTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowJUnitSmokeTest () {
SWTBotCheckBox checkButton = bot.checkBoxWithId(JUnitGW4ETestUIPage.GW4E_CONVERSION_WIDGET_ID, JUnitGW4ETestUIPage.GW4E_CONVERSION_CHOICE_GENERATE_RUN_SMOKE_TEST_CHECKBOX);
checkButton.click();
}
示例13: allowJUnitFunctionalTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowJUnitFunctionalTest () {
SWTBotCheckBox checkButton = bot.checkBoxWithId(JUnitGW4ETestUIPage.GW4E_CONVERSION_WIDGET_ID, JUnitGW4ETestUIPage.GW4E_CONVERSION_CHOICE_GENERATE_RUN_FUNCTIONNAL_TEST_CHECKBOX);
checkButton.click();
}
示例14: allowJUnitStabilityTest
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowJUnitStabilityTest () {
SWTBotCheckBox checkButton = bot.checkBoxWithId(JUnitGW4ETestUIPage.GW4E_CONVERSION_WIDGET_ID, JUnitGW4ETestUIPage.GW4E_CONVERSION_CHOICE_GENERATE_RUN_STABILITY_TEST_CHECKBOX);
checkButton.click();
}
示例15: allowHint
import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入方法依赖的package包/类
public void allowHint () {
SWTBotCheckBox checkButton = bot.checkBoxWithId(JUnitGW4ETestUIPage.GW4E_CONVERSION_WIDGET_ID, JUnitGW4ETestUIPage.GW4E_LAUNCH_TEST_CONFIGURATION_HINT_BUTTON);
checkButton.click();
}