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 |
0
| public ViewerModelEvent(Object source, int reason) {
|
45 |
0
| this(source, reason, null);
|
46 |
| } |
47 |
| |
48 |
| |
49 |
| |
50 |
| |
51 |
| |
52 |
| |
53 |
| |
54 |
| |
55 |
0
| public ViewerModelEvent(Object source, int reason, Object parameter) {
|
56 |
0
| this.source = source;
|
57 |
0
| this.reason = reason;
|
58 |
0
| this.parameter = parameter;
|
59 |
| } |
60 |
| |
61 |
0
| public int getReason() {
|
62 |
0
| return reason;
|
63 |
| } |
64 |
| |
65 |
0
| public Object getSource() {
|
66 |
0
| return source;
|
67 |
| } |
68 |
| |
69 |
0
| public Object getParameter() {
|
70 |
0
| return parameter;
|
71 |
| } |
72 |
| } |