1 22 23 package org.gjt.sp.jedit.msg; 24 25 import org.gjt.sp.jedit.*; 26 27 34 public class PluginUpdate extends EBMessage 35 { 36 42 public static final Object LOADED = "LOADED"; 43 44 49 public static final Object ACTIVATED = "ACTIVATED"; 50 51 56 public static final Object DEACTIVATED = "DEACTIVATED"; 57 58 62 public static final Object UNLOADED = "UNLOADED"; 63 65 73 public PluginUpdate(PluginJAR jar, Object what, boolean exit) 74 { 75 super(jar); 76 77 if(what == null) 78 throw new NullPointerException ("What must be non-null"); 79 80 this.what = what; 81 this.exit = exit; 82 } 84 88 public Object getWhat() 89 { 90 return what; 91 } 93 100 public boolean isExiting() 101 { 102 return exit; 103 } 105 109 public PluginJAR getPluginJAR() 110 { 111 return (PluginJAR)getSource(); 112 } 114 public String paramString() 116 { 117 return "what=" + what + ",exit=" + exit + "," 118 + super.paramString(); 119 } 121 private Object what; 123 private boolean exit; 124 } 126 | Popular Tags |