equal
deleted
inserted
replaced
14 import scala.collection.mutable |
14 import scala.collection.mutable |
15 import scala.util.parsing.input.CharSequenceReader |
15 import scala.util.parsing.input.CharSequenceReader |
16 |
16 |
17 import org.gjt.sp.jedit.jEdit |
17 import org.gjt.sp.jedit.jEdit |
18 import org.gjt.sp.jedit.Buffer |
18 import org.gjt.sp.jedit.Buffer |
19 import org.gjt.sp.jedit.buffer.{BufferAdapter, BufferListener, JEditBuffer, LineManager} |
19 import org.gjt.sp.jedit.buffer.{BufferAdapter, BufferListener, JEditBuffer} |
20 |
20 |
21 |
21 |
22 object Document_Model |
22 object Document_Model |
23 { |
23 { |
24 /* document model of buffer */ |
24 /* document model of buffer */ |
300 |
300 |
301 /* syntax */ |
301 /* syntax */ |
302 |
302 |
303 def syntax_changed() |
303 def syntax_changed() |
304 { |
304 { |
305 Untyped.get[LineManager](buffer, "lineMgr").setFirstInvalidLineContext(0) |
305 JEdit_Lib.buffer_line_manager(buffer).setFirstInvalidLineContext(0) |
306 for (text_area <- JEdit_Lib.jedit_text_areas(buffer)) |
306 for (text_area <- JEdit_Lib.jedit_text_areas(buffer)) |
307 Untyped.method(Class.forName("org.gjt.sp.jedit.textarea.TextArea"), "foldStructureChanged"). |
307 Untyped.method(Class.forName("org.gjt.sp.jedit.textarea.TextArea"), "foldStructureChanged"). |
308 invoke(text_area) |
308 invoke(text_area) |
309 } |
309 } |
310 |
310 |