--- a/src/Tools/jEdit/etc/options Thu Oct 04 11:07:36 2012 +0200
+++ b/src/Tools/jEdit/etc/options Thu Oct 04 11:39:24 2012 +0200
@@ -18,6 +18,9 @@
option jedit_tooltip_dismiss_delay : real = 8.0
-- "global delay for Swing tooltips"
+option jedit_text_overview : bool = true
+ -- "paint text overview column (potentially slow for large files)"
+
section "Rendering of Document Content"
--- a/src/Tools/jEdit/src/isabelle_options.scala Thu Oct 04 11:07:36 2012 +0200
+++ b/src/Tools/jEdit/src/isabelle_options.scala Thu Oct 04 11:39:24 2012 +0200
@@ -41,9 +41,10 @@
{
// FIXME avoid hard-wired stuff
private val relevant_options =
- Set("jedit_logic", "jedit_auto_start", "jedit_font_scale", "jedit_tooltip_font_size",
- "jedit_tooltip_margin", "jedit_tooltip_dismiss_delay", "editor_load_delay",
- "editor_input_delay", "editor_output_delay", "editor_update_delay", "editor_reparse_limit")
+ Set("jedit_logic", "jedit_auto_start", "jedit_font_scale", "jedit_text_overview",
+ "jedit_tooltip_font_size", "jedit_tooltip_margin", "jedit_tooltip_dismiss_delay",
+ "editor_load_delay", "editor_input_delay", "editor_output_delay",
+ "editor_update_delay", "editor_reparse_limit")
relevant_options.foreach(Isabelle.options.value.check_name _)
--- a/src/Tools/jEdit/src/text_overview.scala Thu Oct 04 11:07:36 2012 +0200
+++ b/src/Tools/jEdit/src/text_overview.scala Thu Oct 04 11:39:24 2012 +0200
@@ -69,7 +69,7 @@
JEdit_Lib.buffer_lock(buffer) {
val snapshot = doc_view.model.snapshot()
- if (snapshot.is_outdated) {
+ if (snapshot.is_outdated || !Isabelle.options.bool("jedit_text_overview")) {
gfx.setColor(Isabelle.options.color_value("outdated_color"))
gfx.asInstanceOf[Graphics2D].fill(gfx.getClipBounds)
}