FileHistoryPanelImpl: disable "Get" for directories, since it doesn't work for any VCS anyway.

Relates to IDEA-53116
This commit is contained in:
Kirill Likhodedov
2012-07-26 16:59:33 +04:00
parent e21464d34b
commit dcfb30d32d
@@ -946,9 +946,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
@Override
public boolean isEnabled() {
if (!super.isEnabled()) return false;
if (!myHistorySession.isContentAvailable(getFirstSelectedRevision())) return false;
return true;
return super.isEnabled() && myHistorySession.isContentAvailable(getFirstSelectedRevision()) && !myFilePath.isDirectory();
}
protected void executeAction(AnActionEvent e) {