equal
deleted
inserted
replaced
16 import scala.annotation.tailrec |
16 import scala.annotation.tailrec |
17 import scala.util.parsing.input.CharSequenceReader |
17 import scala.util.parsing.input.CharSequenceReader |
18 |
18 |
19 import org.gjt.sp.jedit.{jEdit, Buffer, View, GUIUtilities, Debug} |
19 import org.gjt.sp.jedit.{jEdit, Buffer, View, GUIUtilities, Debug} |
20 import org.gjt.sp.jedit.gui.KeyEventWorkaround |
20 import org.gjt.sp.jedit.gui.KeyEventWorkaround |
21 import org.gjt.sp.jedit.buffer.JEditBuffer |
21 import org.gjt.sp.jedit.buffer.{JEditBuffer, LineManager} |
22 import org.gjt.sp.jedit.textarea.{JEditTextArea, TextArea, TextAreaPainter} |
22 import org.gjt.sp.jedit.textarea.{JEditTextArea, TextArea, TextAreaPainter} |
23 import org.gjt.sp.jedit.syntax.TokenMarker |
23 import org.gjt.sp.jedit.syntax.TokenMarker |
24 |
24 |
25 |
25 |
26 object JEdit_Lib |
26 object JEdit_Lib |
111 if (name == null) "" else name |
111 if (name == null) "" else name |
112 } |
112 } |
113 } |
113 } |
114 |
114 |
115 def buffer_name(buffer: Buffer): String = buffer.getSymlinkPath |
115 def buffer_name(buffer: Buffer): String = buffer.getSymlinkPath |
|
116 |
|
117 def buffer_line_manager(buffer: JEditBuffer): LineManager = |
|
118 Untyped.get[LineManager](buffer, "lineMgr") |
116 |
119 |
117 |
120 |
118 /* main jEdit components */ |
121 /* main jEdit components */ |
119 |
122 |
120 def jedit_buffers(): Iterator[Buffer] = jEdit.getBuffers().iterator |
123 def jedit_buffers(): Iterator[Buffer] = jEdit.getBuffers().iterator |