1 19 20 package org.gjt.sp.jedit.msg; 21 22 import org.gjt.sp.jedit.*; 23 24 31 public class EditPaneUpdate extends EBMessage 32 { 33 36 public static final Object CREATED = "CREATED"; 37 38 41 public static final Object DESTROYED = "DESTROYED"; 42 43 46 public static final Object BUFFER_CHANGED = "BUFFER_CHANGED"; 47 48 53 public static final Object BUFFER_CHANGING = "BUFFER_CHANGING"; 54 55 60 public EditPaneUpdate(EditPane editPane, Object what) 61 { 62 super(editPane); 63 if(what == null) 64 throw new NullPointerException ("What must be non-null"); 65 66 this.what = what; 67 } 68 69 72 public Object getWhat() 73 { 74 return what; 75 } 76 77 80 public EditPane getEditPane() 81 { 82 return (EditPane)getSource(); 83 } 84 85 public String paramString() 86 { 87 return "what=" + what + "," + super.paramString(); 88 } 89 90 private Object what; 92 93 } 94 | Popular Tags |