Disable 'Syntax Highlighting' and 'Show Full File' on big files

If the file is huge, we disable these features.  A tooltip tells
the user why they cannot access them.

Change-Id: Icec1857844d62456c7abfd8b0d3dd753198330dd
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-03-04 17:43:38 -08:00
parent bd277faf35
commit 44a80aa4b5
6 changed files with 49 additions and 8 deletions

View File

@@ -447,6 +447,7 @@ public abstract class PatchScreen extends Screen implements
contentTable.finishDisplay();
}
showPatch(hasDifferences);
settingsPanel.setEnableSmallFileFeatures(!script.isHugeFile());
settingsPanel.setEnabled(true);
lastScript = script;