01: package net.refractions.udig.project.geoselection;
02:
03: /**
04: * @author Vitalus
05: * @param <T>
06: */
07: public class GeoSelectionChangedEvent<T> {
08:
09: private String context;
10:
11: private T target;
12:
13: private IGeoSelection oldSelection;
14:
15: private IGeoSelection newSelection;
16:
17: /**
18: * @param context
19: * @param target
20: * @param oldSelection
21: * @param newSelection
22: */
23: public GeoSelectionChangedEvent(String context, T target,
24: IGeoSelection oldSelection, IGeoSelection newSelection) {
25: super ();
26: this .context = context;
27: this .target = target;
28: this .oldSelection = oldSelection;
29: this .newSelection = newSelection;
30: }
31:
32: /**
33: * @return
34: */
35: public String getContext() {
36: return context;
37: }
38:
39: /**
40: * @return
41: */
42: public IGeoSelection getNewSelection() {
43: return newSelection;
44: }
45:
46: /**
47: * @return
48: */
49: public IGeoSelection getOldSelection() {
50: return oldSelection;
51: }
52:
53: /**
54: * @return
55: */
56: public T getTarget() {
57: return target;
58: }
59:
60: }
|