1 package net.sourceforge.pmd.util.viewer.model; 2 3 17 public class ViewerModelEvent { 18 21 public static final int CODE_RECOMPILED = 1; 22 25 public static final int NODE_SELECTED = 2; 26 29 public static final int PATH_EXPRESSION_APPENDED = 3; 30 33 public static final int PATH_EXPRESSION_EVALUATED = 4; 34 private Object source; 35 private int reason; 36 private Object parameter; 37 38 44 public ViewerModelEvent(Object source, int reason) { 45 this(source, reason, null); 46 } 47 48 55 public ViewerModelEvent(Object source, int reason, Object parameter) { 56 this.source = source; 57 this.reason = reason; 58 this.parameter = parameter; 59 } 60 61 public int getReason() { 62 return reason; 63 } 64 65 public Object getSource() { 66 return source; 67 } 68 69 public Object getParameter() { 70 return parameter; 71 } 72 } 73 | Popular Tags |