author | wenzelm |
Tue, 14 Jun 2011 11:36:08 +0200 | |
changeset 43381 | 806878ae2219 |
parent 43376 | src/Tools/jEdit/src/text_painter.scala@0f6880c1c759 |
child 43382 | 5d9d34bdec25 |
permissions | -rw-r--r-- |
43381 | 1 |
/* Title: Tools/jEdit/src/text_area_painter.scala |
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
2 |
Author: Makarius |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
3 |
|
43381 | 4 |
Painter setup for main jEdit text area. |
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
5 |
*/ |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
6 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
7 |
package isabelle.jedit |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
8 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
9 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
10 |
import isabelle._ |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
11 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
12 |
import java.awt.{Graphics, Graphics2D} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
13 |
import java.util.ArrayList |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
14 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
15 |
import org.gjt.sp.jedit.Debug |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
16 |
import org.gjt.sp.jedit.syntax.{DisplayTokenHandler, Chunk} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
17 |
import org.gjt.sp.jedit.textarea.{JEditTextArea, TextAreaExtension, TextAreaPainter} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
18 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
19 |
|
43381 | 20 |
class Text_Area_Painter(doc_view: Document_View) |
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
21 |
{ |
43381 | 22 |
private val model = doc_view.model |
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
23 |
private val text_area = doc_view.text_area |
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
24 |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
25 |
private val orig_text_painter: TextAreaExtension = |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
26 |
{ |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
27 |
val name = "org.gjt.sp.jedit.textarea.TextAreaPainter$PaintText" |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
28 |
text_area.getPainter.getExtensions.iterator.filter(x => x.getClass.getName == name).toList |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
29 |
match { |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
30 |
case List(x) => x |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
31 |
case _ => error("Expected exactly one " + name) |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
32 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
33 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
34 |
|
43381 | 35 |
|
36 |
/* painter snapshot */ |
|
37 |
||
38 |
@volatile private var _painter_snapshot: Option[Document.Snapshot] = None |
|
39 |
||
40 |
private def painter_snapshot(): Document.Snapshot = |
|
41 |
_painter_snapshot match { |
|
42 |
case Some(snapshot) => snapshot |
|
43 |
case None => error("Missing document snapshot for text area painter") |
|
44 |
} |
|
45 |
||
46 |
private val set_snapshot = new TextAreaExtension |
|
47 |
{ |
|
48 |
override def paintScreenLineRange(gfx: Graphics2D, |
|
49 |
first_line: Int, last_line: Int, physical_lines: Array[Int], |
|
50 |
start: Array[Int], end: Array[Int], y: Int, line_height: Int) |
|
51 |
{ |
|
52 |
_painter_snapshot = Some(model.snapshot()) |
|
53 |
} |
|
54 |
} |
|
55 |
||
56 |
private val reset_snapshot = new TextAreaExtension |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
57 |
{ |
43381 | 58 |
override def paintScreenLineRange(gfx: Graphics2D, |
59 |
first_line: Int, last_line: Int, physical_lines: Array[Int], |
|
60 |
start: Array[Int], end: Array[Int], y: Int, line_height: Int) |
|
61 |
{ |
|
62 |
_painter_snapshot = None |
|
63 |
} |
|
64 |
} |
|
65 |
||
66 |
||
67 |
/* text background */ |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
68 |
|
43381 | 69 |
private val background_painter = new TextAreaExtension |
70 |
{ |
|
71 |
override def paintScreenLineRange(gfx: Graphics2D, |
|
72 |
first_line: Int, last_line: Int, physical_lines: Array[Int], |
|
73 |
start: Array[Int], end: Array[Int], y: Int, line_height: Int) |
|
74 |
{ |
|
75 |
Isabelle.swing_buffer_lock(model.buffer) { |
|
76 |
val snapshot = painter_snapshot() |
|
77 |
val ascent = text_area.getPainter.getFontMetrics.getAscent |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
78 |
|
43381 | 79 |
for (i <- 0 until physical_lines.length) { |
80 |
if (physical_lines(i) != -1) { |
|
81 |
val line_range = doc_view.proper_line_range(start(i), end(i)) |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
82 |
|
43381 | 83 |
// background color: status |
84 |
val cmds = snapshot.node.command_range(snapshot.revert(line_range)) |
|
85 |
for { |
|
86 |
(command, command_start) <- cmds if !command.is_ignored |
|
87 |
val range = line_range.restrict(snapshot.convert(command.range + command_start)) |
|
88 |
r <- Isabelle.gfx_range(text_area, range) |
|
89 |
color <- Isabelle_Markup.status_color(snapshot, command) |
|
90 |
} { |
|
91 |
gfx.setColor(color) |
|
92 |
gfx.fillRect(r.x, y + i * line_height, r.length, line_height) |
|
93 |
} |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
94 |
|
43381 | 95 |
// background color (1): markup |
96 |
for { |
|
97 |
Text.Info(range, Some(color)) <- |
|
98 |
snapshot.select_markup(line_range)(Isabelle_Markup.background1).iterator |
|
99 |
r <- Isabelle.gfx_range(text_area, range) |
|
100 |
} { |
|
101 |
gfx.setColor(color) |
|
102 |
gfx.fillRect(r.x, y + i * line_height, r.length, line_height) |
|
103 |
} |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
104 |
|
43381 | 105 |
// background color (2): markup |
106 |
for { |
|
107 |
Text.Info(range, Some(color)) <- |
|
108 |
snapshot.select_markup(line_range)(Isabelle_Markup.background2).iterator |
|
109 |
r <- Isabelle.gfx_range(text_area, range) |
|
110 |
} { |
|
111 |
gfx.setColor(color) |
|
112 |
gfx.fillRect(r.x + 2, y + i * line_height + 2, r.length - 4, line_height - 4) |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
113 |
} |
43381 | 114 |
|
115 |
// sub-expression highlighting -- potentially from other snapshot |
|
116 |
doc_view.highlight_range match { |
|
117 |
case Some((range, color)) if line_range.overlaps(range) => |
|
118 |
Isabelle.gfx_range(text_area, line_range.restrict(range)) match { |
|
119 |
case None => |
|
120 |
case Some(r) => |
|
121 |
gfx.setColor(color) |
|
122 |
gfx.drawRect(r.x, y + i * line_height, r.length - 1, line_height - 1) |
|
123 |
} |
|
124 |
case _ => |
|
125 |
} |
|
126 |
||
127 |
// squiggly underline |
|
128 |
for { |
|
129 |
Text.Info(range, Some(color)) <- |
|
130 |
snapshot.select_markup(line_range)(Isabelle_Markup.message).iterator |
|
131 |
r <- Isabelle.gfx_range(text_area, range) |
|
132 |
} { |
|
133 |
gfx.setColor(color) |
|
134 |
val x0 = (r.x / 2) * 2 |
|
135 |
val y0 = r.y + ascent + 1 |
|
136 |
for (x1 <- Range(x0, x0 + r.length, 2)) { |
|
137 |
val y1 = if (x1 % 4 < 2) y0 else y0 + 1 |
|
138 |
gfx.drawLine(x1, y1, x1 + 1, y1) |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
139 |
} |
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
140 |
} |
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
141 |
} |
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
142 |
} |
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
143 |
} |
43381 | 144 |
} |
145 |
} |
|
146 |
||
147 |
||
148 |
/* text */ |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
149 |
|
43381 | 150 |
private val text_painter = new TextAreaExtension |
151 |
{ |
|
152 |
override def paintScreenLineRange(gfx: Graphics2D, |
|
153 |
first_line: Int, last_line: Int, physical_lines: Array[Int], |
|
154 |
start: Array[Int], end: Array[Int], y_start: Int, line_height: Int) |
|
155 |
{ |
|
156 |
val buffer = text_area.getBuffer |
|
157 |
Isabelle.swing_buffer_lock(buffer) { |
|
158 |
val painter = text_area.getPainter |
|
159 |
val font = painter.getFont |
|
160 |
val font_context = painter.getFontRenderContext |
|
161 |
val font_metrics = painter.getFontMetrics |
|
43371
98de43fc9733
more precise imitation of original TextAreaPainter$PaintText;
wenzelm
parents:
43370
diff
changeset
|
162 |
|
43381 | 163 |
def paint_chunk_list(head_offset: Text.Offset, head: Chunk, x: Float, y: Float): Float = |
164 |
{ |
|
165 |
val clip_rect = gfx.getClipBounds |
|
166 |
||
167 |
var w = 0.0f |
|
168 |
var offset = head_offset |
|
169 |
var chunk = head |
|
170 |
while (chunk != null) { |
|
171 |
val chunk_length = if (chunk.str == null) 0 else chunk.str.length |
|
172 |
||
173 |
if (x + w + chunk.width > clip_rect.x && |
|
174 |
x + w < clip_rect.x + clip_rect.width && |
|
175 |
chunk.accessable && chunk.visible) |
|
176 |
{ |
|
177 |
val chunk_range = Text.Range(offset, offset + chunk_length) |
|
178 |
val chunk_font = chunk.style.getFont |
|
179 |
val chunk_color = chunk.style.getForegroundColor |
|
180 |
||
181 |
val markup = painter_snapshot.select_markup(chunk_range)(Isabelle_Markup.foreground) |
|
43371
98de43fc9733
more precise imitation of original TextAreaPainter$PaintText;
wenzelm
parents:
43370
diff
changeset
|
182 |
|
43381 | 183 |
gfx.setFont(chunk_font) |
184 |
if (!Debug.DISABLE_GLYPH_VECTOR && chunk.gv != null && |
|
185 |
markup.forall(info => info.info.isEmpty)) { |
|
186 |
gfx.setColor(chunk_color) |
|
187 |
gfx.drawGlyphVector(chunk.gv, x + w, y) |
|
188 |
} |
|
189 |
else { |
|
190 |
var xpos = x + w |
|
191 |
for (Text.Info(range, info) <- markup) { |
|
192 |
val str = chunk.str.substring(range.start - offset, range.stop - offset) |
|
193 |
gfx.setColor(info.getOrElse(chunk_color)) |
|
194 |
gfx.drawString(str, xpos.toInt, y.toInt) |
|
195 |
xpos += chunk_font.getStringBounds(str, font_context).getWidth.toFloat |
|
196 |
} |
|
197 |
} |
|
198 |
} |
|
199 |
w += chunk.width |
|
200 |
offset += chunk_length |
|
201 |
chunk = chunk.next.asInstanceOf[Chunk] |
|
202 |
} |
|
203 |
w |
|
204 |
} |
|
43371
98de43fc9733
more precise imitation of original TextAreaPainter$PaintText;
wenzelm
parents:
43370
diff
changeset
|
205 |
|
43381 | 206 |
// see org.gjt.sp.jedit.textarea.TextArea.propertiesChanged |
207 |
// see org.gjt.sp.jedit.textarea.TextArea.setMaxLineLength |
|
208 |
val char_width = font.getStringBounds(" ", font_context).getWidth.round.toInt |
|
209 |
val soft_wrap = buffer.getStringProperty("wrap") == "soft" |
|
210 |
val wrap_margin = |
|
211 |
{ |
|
212 |
val max = buffer.getIntegerProperty("maxLineLen", 0) |
|
213 |
if (max > 0) font.getStringBounds(" " * max, font_context).getWidth.toInt |
|
214 |
else if (soft_wrap) painter.getWidth - char_width * 3 |
|
215 |
else 0 |
|
216 |
}.toFloat |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
217 |
|
43381 | 218 |
val line_infos: Map[Text.Offset, Chunk] = |
219 |
{ |
|
220 |
val out = new ArrayList[Chunk] |
|
221 |
val handler = new DisplayTokenHandler |
|
222 |
val margin = if (soft_wrap) wrap_margin else 0.0f |
|
223 |
||
224 |
var result = Map[Text.Offset, Chunk]() |
|
225 |
for (line <- physical_lines.iterator.filter(i => i != -1)) { |
|
226 |
out.clear |
|
227 |
handler.init(painter.getStyles, font_context, painter, out, margin) |
|
228 |
buffer.markTokens(line, handler) |
|
229 |
||
230 |
val line_start = buffer.getLineStartOffset(line) |
|
231 |
for (i <- 0 until out.size) { |
|
232 |
val chunk = out.get(i) |
|
233 |
result += (line_start + chunk.offset -> chunk) |
|
234 |
} |
|
235 |
} |
|
236 |
result |
|
237 |
} |
|
43376
0f6880c1c759
some direct text foreground painting, instead of token marking;
wenzelm
parents:
43375
diff
changeset
|
238 |
|
43381 | 239 |
val clip = gfx.getClip |
240 |
val x0 = text_area.getHorizontalOffset |
|
241 |
var y0 = |
|
242 |
y_start + font_metrics.getHeight - (font_metrics.getLeading + 1) - font_metrics.getDescent |
|
43372
2df2144b0910
use orig_text_painter for extras outside main text (also required to update internal line infos);
wenzelm
parents:
43371
diff
changeset
|
243 |
|
43381 | 244 |
for (i <- 0 until physical_lines.length) { |
245 |
if (physical_lines(i) != -1) { |
|
246 |
line_infos.get(start(i)) match { |
|
247 |
case Some(chunk) => |
|
248 |
val w = paint_chunk_list(start(i), chunk, x0, y0).toInt |
|
249 |
gfx.clipRect(x0 + w, 0, Integer.MAX_VALUE, Integer.MAX_VALUE) |
|
250 |
orig_text_painter.paintValidLine(gfx, |
|
251 |
first_line + i, physical_lines(i), start(i), end(i), y_start + line_height * i) |
|
252 |
gfx.setClip(clip) |
|
253 |
||
254 |
case None => |
|
255 |
} |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
256 |
} |
43381 | 257 |
y0 += line_height |
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
258 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
259 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
260 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
261 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
262 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
263 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
264 |
/* activation */ |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
265 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
266 |
def activate() |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
267 |
{ |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
268 |
val painter = text_area.getPainter |
43381 | 269 |
painter.addExtension(TextAreaPainter.LOWEST_LAYER, set_snapshot) |
270 |
painter.addExtension(TextAreaPainter.LINE_BACKGROUND_LAYER + 1, background_painter) |
|
271 |
painter.addExtension(TextAreaPainter.TEXT_LAYER, text_painter) |
|
272 |
painter.addExtension(TextAreaPainter.HIGHEST_LAYER, reset_snapshot) |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
273 |
painter.removeExtension(orig_text_painter) |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
274 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
275 |
|
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
276 |
def deactivate() |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
277 |
{ |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
278 |
val painter = text_area.getPainter |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
279 |
painter.addExtension(TextAreaPainter.TEXT_LAYER, orig_text_painter) |
43381 | 280 |
painter.removeExtension(reset_snapshot) |
281 |
painter.removeExtension(text_painter) |
|
282 |
painter.removeExtension(background_painter) |
|
283 |
painter.removeExtension(set_snapshot) |
|
43369
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
284 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
285 |
} |
4c86b3405010
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;
wenzelm
parents:
diff
changeset
|
286 |