[file-history] inline showTree method

This commit is contained in:
Julia Beliaeva
2016-07-31 18:30:43 +03:00
parent db85823ec3
commit f94f8765be
@@ -427,7 +427,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme
}
private void chooseView() {
if (showTree()) {
if (getConfiguration().SHOW_FILE_HISTORY_AS_TREE) {
myDualView.switchToTheTreeMode();
}
else {
@@ -435,10 +435,6 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton impleme
}
}
private boolean showTree() {
return getConfiguration().SHOW_FILE_HISTORY_AS_TREE;
}
private VcsConfiguration getConfiguration() {
return VcsConfiguration.getInstance(myVcs.getProject());
}