1 22 23 package org.gjt.sp.jedit.msg; 24 25 import org.gjt.sp.jedit.*; 26 27 34 public class BufferUpdate extends EBMessage 35 { 36 40 public static final Object CREATED = "CREATED"; 41 42 46 public static final Object CLOSING = "CLOSING"; 47 51 public static final Object LOAD_STARTED = "LOAD_STARTED"; 52 53 56 public static final Object LOADED = "LOADED"; 57 58 61 public static final Object CLOSED = "CLOSED"; 62 63 66 public static final Object DIRTY_CHANGED = "DIRTY_CHANGED"; 67 68 71 public static final Object MARKERS_CHANGED = "MARKERS_CHANGED"; 72 73 76 public static final Object SAVING = "SAVING"; 77 78 82 public static final Object SAVED = "SAVED"; 83 84 88 public static final Object PROPERTIES_CHANGED = "PROPERTIES_CHANGED"; 89 91 97 public BufferUpdate(Buffer buffer, View view, Object what) 98 { 99 super(buffer); 100 101 this.view = view; 102 103 if(what == null) 104 throw new NullPointerException ("What must be non-null"); 105 106 this.what = what; 107 } 109 113 public Object getWhat() 114 { 115 return what; 116 } 118 122 public Buffer getBuffer() 123 { 124 return (Buffer)getSource(); 125 } 127 131 public View getView() 132 { 133 return view; 134 } 136 public String paramString() 138 { 139 return "what=" + what + ",view=" + view + "," 140 + super.paramString(); 141 } 143 private Object what; 145 private View view; 146 } 148 | Popular Tags |