01: package org.gjt.sp.jedit.msg;
02:
03: import org.gjt.sp.jedit.EBMessage;
04: import org.gjt.sp.jedit.textarea.JEditTextArea;
05:
06: /**
07: * Sent on the editbus when events are coming from the TextArea.
08: *
09: * @deprecated - use EditPaneUpdate
10: * @author ezust
11: * @since jedit 4.3pre5
12: *
13: */
14: public class TextAreaUpdate extends EBMessage {
15: /** @deprecated */
16: public static final String CARET_CHANGING = "CARET_CHANGING";
17: String what;
18: int caret = 0;
19:
20: public TextAreaUpdate(JEditTextArea textArea, String what) {
21: super (textArea);
22: this .what = what;
23: caret = textArea.getCaretPosition();
24: }
25:
26: public String getWhat() {
27: return what;
28: }
29:
30: public JEditTextArea getTextArea() {
31: return (JEditTextArea) getSource();
32: }
33: }
|