Package org.eclipse.swtbot.swt.finder.widgets

Examples of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButton(String mnemonicText, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here


   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltip(String tooltip, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String key, String value, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(key, value), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButtonWithId(String value, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withId(value), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButton(int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButtonInGroup(String mnemonicText, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withMnemonic(mnemonicText), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   * @throws WidgetNotFoundException if the widget is not found or is disposed.
   */
  @SuppressWarnings({"unchecked", "rawtypes"})
  public SWTBotToolbarToggleButton toolbarToggleButtonWithTooltipInGroup(String tooltip, String inGroup, int index) {
    Matcher matcher = allOf(widgetOfType(ToolItem.class), withTooltip(tooltip), inGroup(inGroup), withStyle(SWT.CHECK, "SWT.CHECK"));
    return new SWTBotToolbarToggleButton((ToolItem) widget(matcher, index), matcher);
  }
View Full Code Here

   */
  private void initFilter(int filter) throws Exception {
    getHistoryViewTable(PROJ1);
    SWTBotView view = bot
        .viewById("org.eclipse.team.ui.GenericHistoryView");
    SWTBotToolbarToggleButton folder = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_AllInParentTooltip);
    SWTBotToolbarToggleButton project = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_AllInProjectTooltip);
    SWTBotToolbarToggleButton repo = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_AllInRepoTooltip);
    switch (filter) {
    case 0:
      if (folder.isChecked())
        folder.click();
      if (project.isChecked())
        project.click();
      if (repo.isChecked())
        repo.click();
      break;
    case 1:
      if (!repo.isChecked())
        repo.click();
      break;
    case 2:
      if (!project.isChecked())
        project.click();
      break;
View Full Code Here

  private void toggleShowAllBranchesButton(boolean checked) throws Exception{
    getHistoryViewTable(PROJ1);
    SWTBotView view = bot
        .viewById("org.eclipse.team.ui.GenericHistoryView");
    SWTBotToolbarToggleButton showAllBranches = (SWTBotToolbarToggleButton) view
        .toolbarButton(UIText.GitHistoryPage_showAllBranches);
    boolean isChecked = showAllBranches.isChecked();
    if(isChecked && !checked || !isChecked && checked)
      showAllBranches.click();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.