1 package net.sourceforge.pmd.util.viewer.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 public class ViewerModelEvent {
18
19
20
21 public static final int CODE_RECOMPILED = 1;
22
23
24
25 public static final int NODE_SELECTED = 2;
26
27
28
29 public static final int PATH_EXPRESSION_APPENDED = 3;
30
31
32
33 public static final int PATH_EXPRESSION_EVALUATED = 4;
34 private Object source;
35 private int reason;
36 private Object parameter;
37
38
39
40
41
42
43
44 public ViewerModelEvent(Object source, int reason) {
45 this(source, reason, null);
46 }
47
48
49
50
51
52
53
54
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 }