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

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


            UIText.StagingView_Ammend_Previous_Commit);
    selectToolbarToggle(button, amend);
  }

  public boolean getAmend() {
    SWTBotToolbarToggleButton button = stagingView.bot()
        .toolbarToggleButtonWithTooltip(
            UIText.StagingView_Ammend_Previous_Commit);
    return button.isChecked();
  }
View Full Code Here


            UIText.StagingView_Ammend_Previous_Commit);
    return button.isChecked();
  }

  public void setInsertChangeId(boolean insertChangeId) {
    SWTBotToolbarToggleButton button = stagingView.bot()
        .toolbarToggleButtonWithTooltip(
            UIText.StagingView_Add_Change_ID);
    selectToolbarToggle(button, insertChangeId);
  }
View Full Code Here

            UIText.StagingView_Add_Change_ID);
    selectToolbarToggle(button, insertChangeId);
  }

  public boolean getInsertChangeId() {
    SWTBotToolbarToggleButton button = stagingView.bot()
        .toolbarToggleButtonWithTooltip(
            UIText.StagingView_Add_Change_ID);
    return button.isChecked();
  }
View Full Code Here

            UIText.StagingView_Add_Change_ID);
    return button.isChecked();
  }

  public void setSignedOff(boolean signedOff) {
    SWTBotToolbarToggleButton button = stagingView.bot()
        .toolbarToggleButtonWithTooltip(
            UIText.StagingView_Add_Signed_Off_By);
    selectToolbarToggle(button, signedOff);
  }
View Full Code Here

            UIText.StagingView_Add_Signed_Off_By);
    selectToolbarToggle(button, signedOff);
  }

  public boolean getSignedOff() {
    SWTBotToolbarToggleButton button = stagingView.bot()
        .toolbarToggleButtonWithTooltip(
            UIText.StagingView_Add_Signed_Off_By);
    return button.isChecked();
  }
View Full Code Here

 
  @Test
  public void toolbarToogleButton() throws Exception {
    SWTBotView view = bot.viewByTitle("SWTBot Test View");

    SWTBotToolbarToggleButton button = view.toolbarToggleButton("This represents a toggle IAction command.");
    assertNotNull(button);

    button.click();
    bot.button("OK").click();
  }
View Full Code Here

   * @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

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.