Search in sources :

Example 1 with SWTBotToolbarToggleButton

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton in project egit by eclipse.

the class HistoryViewTest method toggleShowAllBranchesButton.

private void toggleShowAllBranchesButton(boolean checked) throws Exception {
    getHistoryViewTable(PROJ1);
    SWTBotView view = bot.viewById(IHistoryView.VIEW_ID);
    SWTBotToolbarToggleButton showAllBranches = (SWTBotToolbarToggleButton) view.toolbarButton(UIText.GitHistoryPage_showAllBranches);
    boolean isChecked = showAllBranches.isChecked();
    if (isChecked && !checked || !isChecked && checked)
        showAllBranches.click();
}
Also used : SWTBotView(org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView) SWTBotToolbarToggleButton(org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton)

Example 2 with SWTBotToolbarToggleButton

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton in project egit by eclipse.

the class CommitDialogTester method setSignedOff.

public void setSignedOff(boolean signedOff) {
    SWTBotToolbarToggleButton button = commitDialog.bot().toolbarToggleButtonWithTooltip(UIText.CommitDialog_AddSOB);
    selectToolbarToggle(button, signedOff);
}
Also used : SWTBotToolbarToggleButton(org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton)

Example 3 with SWTBotToolbarToggleButton

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton in project egit by eclipse.

the class CommitDialogTester method setInsertChangeId.

public void setInsertChangeId(boolean insertChangeId) {
    SWTBotToolbarToggleButton button = commitDialog.bot().toolbarToggleButtonWithTooltip(UIText.CommitDialog_AddChangeIdLabel);
    selectToolbarToggle(button, insertChangeId);
}
Also used : SWTBotToolbarToggleButton(org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton)

Example 4 with SWTBotToolbarToggleButton

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton in project egit by eclipse.

the class StagingViewTester method setSignedOff.

public void setSignedOff(boolean signedOff) {
    SWTBotToolbarToggleButton button = stagingView.bot().toolbarToggleButtonWithTooltip(UIText.StagingView_Add_Signed_Off_By);
    selectToolbarToggle(button, signedOff);
}
Also used : SWTBotToolbarToggleButton(org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton)

Example 5 with SWTBotToolbarToggleButton

use of org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton in project egit by eclipse.

the class StagingViewTester method setInsertChangeId.

public void setInsertChangeId(boolean insertChangeId) {
    SWTBotToolbarToggleButton button = stagingView.bot().toolbarToggleButtonWithTooltip(UIText.StagingView_Add_Change_ID);
    selectToolbarToggle(button, insertChangeId);
}
Also used : SWTBotToolbarToggleButton(org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton)

Aggregations

SWTBotToolbarToggleButton (org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarToggleButton)10 SWTBotView (org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView)2 IProject (org.eclipse.core.resources.IProject)1 SWTBotShell (org.eclipse.swtbot.swt.finder.widgets.SWTBotShell)1 SWTBotTree (org.eclipse.swtbot.swt.finder.widgets.SWTBotTree)1 Test (org.junit.Test)1