01: package net.refractions.udig.project.geoselection;
02:
03: import org.eclipse.core.runtime.ListenerList;
04:
05: /**
06: * General abstract implementation of <code>IGeoSelectionManager</code> interface.
07: *
08: * @author vitalus
09: * @version 0.1
10: * @since UDIG 1.1
11: */
12: public abstract class AbstractGeoSelectionManager implements
13: IGeoSelectionManager {
14:
15: protected ListenerList listeners = new ListenerList();
16:
17: /**
18: * Empty constructor
19: */
20: protected AbstractGeoSelectionManager() {
21:
22: }
23:
24: public void addListener(IGeoSelectionChangedListener listener) {
25: listeners.add(listener);
26: }
27:
28: public void removeListener(IGeoSelectionChangedListener listener) {
29: listeners.remove(listener);
30: }
31:
32: }
|