*/
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;