* 0: none, 1: repository, 2: project, 3: folder
* @throws Exception
*/
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();