1
2
3
4 package net.sourceforge.pmd.util.viewer.model;
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 public class ViewerModelEvent {
21
22
23
24 public static final int CODE_RECOMPILED = 1;
25
26
27
28 public static final int NODE_SELECTED = 2;
29
30
31
32 public static final int PATH_EXPRESSION_APPENDED = 3;
33
34
35
36 public static final int PATH_EXPRESSION_EVALUATED = 4;
37 private Object source;
38 private int reason;
39 private Object parameter;
40
41
42
43
44
45
46
47 public ViewerModelEvent(Object source, int reason) {
48 this(source, reason, null);
49 }
50
51
52
53
54
55
56
57
58 public ViewerModelEvent(Object source, int reason, Object parameter) {
59 this.source = source;
60 this.reason = reason;
61 this.parameter = parameter;
62 }
63
64 public int getReason() {
65 return reason;
66 }
67
68 public Object getSource() {
69 return source;
70 }
71
72 public Object getParameter() {
73 return parameter;
74 }
75 }