• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java SWTBotCheckBox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox的典型用法代码示例。如果您正苦于以下问题:Java SWTBotCheckBox类的具体用法?Java SWTBotCheckBox怎么用?Java SWTBotCheckBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SWTBotCheckBox类属于org.eclipse.swtbot.swt.finder.widgets包,在下文中一共展示了SWTBotCheckBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: validateRun

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
public void validateRun (String configurationName,String projectName,String filepath,boolean printUnvisited,boolean verbose,String startElement,String generator) {
	SWTBotShell shell = openExistingRun (configurationName);
	
	SWTBotText projectText = shell.bot().textWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_TEXT_ID_PROJECT);
	assertEquals("Wrong project name",projectName,projectText.getText());
	
	SWTBotText modelText = shell.bot().textWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_TEXT_ID_MODEL);
	assertEquals("Wrong model name",filepath,modelText.getText());
	
	SWTBotCheckBox verboseButton  = shell.bot().checkBoxWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_BUTTON_ID_VERBOSE);
	assertEquals("Wrong verbose value",verbose,verboseButton.isChecked());
	
	SWTBotCheckBox unvisitedButton  = shell.bot().checkBoxWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_BUTTON_ID_PRINT_UNVISITED);
	assertEquals("Wrong verbose value",verbose,unvisitedButton.isChecked());
	
	SWTBotText startElementText = shell.bot().textWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_TEXT_ID_START_ELEMENT);
	assertEquals("Wrong start element",startElement,startElementText.getText());
	
	SWTBotCombo generatorCombo = shell.bot().comboBoxWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID,GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_COMBO_PATH_GENERATOR_ID_MODEL);
	assertEquals("Wrong generator value",generator,generatorCombo.getText());
	
	SWTBotButton closeButton = bot.button("Close");
	closeButton.click();
	
	bot.waitUntil(Conditions.shellCloses(shell));
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:27,代码来源:GW4EOfflineRunner.java


示例2: toggleBlocked

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
public void toggleBlocked(SWTBotGefEditPart part) {
	selectPart(part);
	selectTab(part, PROPERTIES);
	SWTBotCheckBox checkbox = bot.checkBoxWithId(VertexDefaultSection.WIDGET_ID,VertexDefaultSection.WIDGET_BUTTON_BLOCKED);
	if (checkbox.isChecked()) {
		checkbox.deselect();
	} else {
		checkbox.select();
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:11,代码来源:GraphElementProperties.java


示例3: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:8,代码来源:RunAsManualWizard.java


示例4: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:8,代码来源:GW4EPreferencePage.java


示例5: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:30,代码来源:ConsolePreferencePage.java


示例6: setOmitOption

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
private void setOmitOption (boolean value) {
	SWTBotCheckBox button = bot.checkBoxWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID, GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_BUTTON_ID_OMIT_EMPTY_EDGE);
	if (value && !button.isChecked()) {
		button.select();
	} else {
		if (!value && button.isChecked()) {
			button.deselect();
		}
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:11,代码来源:GW4EManualRunner.java


示例7: setRemoveBlockedElement

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
private void setRemoveBlockedElement (boolean value) {
	SWTBotCheckBox button = bot.checkBoxWithId(GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_CONTROL_ID, GW4ELaunchConfigurationTab.GW4E_LAUNCH_CONFIGURATION_BUTTON_ID_REMOVE_BLOCKED_ELEMENTS);
	if (value && !button.isChecked()) {
		button.select();
	} else {
		if (!value && button.isChecked()) {
			button.deselect();
		}
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:11,代码来源:GW4EManualRunner.java


示例8: 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


示例9: testDynamicEnabling

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
@Test
public void testDynamicEnabling() {
  Button asMavenProject = CompositeUtil.findControl(shell, Button.class);

  new SWTBotCheckBox(asMavenProject).click();
  assertTrue(getGroupIdField().getEnabled());
  assertTrue(getArtifactIdField().getEnabled());
  assertTrue(getVersionField().getEnabled());

  new SWTBotCheckBox(asMavenProject).click();
  assertFalse(getGroupIdField().getEnabled());
  assertFalse(getArtifactIdField().getEnabled());
  assertFalse(getVersionField().getEnabled());
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:15,代码来源:MavenCoordinatesWizardUiTest.java


示例10: getButton

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
private SWTBotCheckBox getButton(String libraryId) {
  for (Button button : librariesSelector.getLibraryButtons()) {
    if (libraryId.equals(((Library) button.getData()).getId())) {
      return new SWTBotCheckBox(button);
    }
  }
  fail("Could not find button for " + libraryId);
  return null; // won't be reached
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:10,代码来源:ClientApisLibrariesSelectorGroupTest.java


示例11: setCheckBox

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
public static void setCheckBox(SWTBotCheckBox checkBox, boolean checked) {
  if (checked) {
    checkBox.select();
  } else {
    checkBox.deselect();
  }
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:8,代码来源:SwtBotUtils.java


示例12: testThatAddToWorkingSetCheckboxIsUncheckedByDefault

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
@Test
public void testThatAddToWorkingSetCheckboxIsUncheckedByDefault() {
    openImportProjectWizardPage();

    final SWTBotCheckBox addToWorkingSetCheckBox = bot.checkBox(0);

    Assert.assertFalse(addToWorkingSetCheckBox.isChecked());
}
 
开发者ID:codenvy-legacy,项目名称:eclipse-plugin,代码行数:9,代码来源:ProjectWizardPageTest.java


示例13: 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());
}
 
开发者ID:codenvy-legacy,项目名称:eclipse-plugin,代码行数:12,代码来源:ProjectWizardPageTest.java


示例14: isShared

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
public boolean isShared(SWTBotGefEditPart part) {
	selectPart(part);
	selectTab(part, PROPERTIES);
	SWTBotCheckBox checkbox = bot.checkBoxWithId(VertexDefaultSection.WIDGET_ID,VertexDefaultSection.WIDGET_BUTTON_SHARED);
	return checkbox.isChecked();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:7,代码来源:VertexProperties.java


示例15: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:6,代码来源:OutLineView.java


示例16: 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();
	}
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:7,代码来源:OutLineView.java


示例17: getBtnUpdateIfTestcaseid

import org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox; //导入依赖的package包/类
private SWTBotCheckBox getBtnUpdateIfTestcaseid() {
	return bot.checkBoxWithId(org.gw4e.eclipse.wizard.runasmanual.SaveTestPage.GW4E_MANUAL_ELEMENT_ID,
			org.gw4e.eclipse.wizard.runasmanual.SaveTestPage.GW4E_MANUAL_BUTTON_UPDATE_IF_TESTCASE_ID);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:RunAsManualWizard.java


示例18: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:StaticGeneratorWizard.java


示例19: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:GraphWalkerTestHookPageTest.java


示例20: 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();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:GraphWalkerTestHookPageTest.java



注:本文中的org.eclipse.swtbot.swt.finder.widgets.SWTBotCheckBox类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Window类代码示例发布时间:2022-05-22
下一篇:
Java TimeAnnotations类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap