01: package org.objectweb.salome_tmf.data;
02:
03: import java.io.Serializable;
04: import java.util.Observable;
05: import java.util.Observer;
06:
07: import org.objectweb.salome_tmf.data.SalomeEvent;
08:
09: public class ObservableProject extends Observable implements
10: Serializable {
11:
12: public void addObserver(Observer o) {
13: super .addObserver(o);
14: setChanged();
15: }
16:
17: public void notifyChanged(SalomeEvent e) {
18: notifyObservers(e);
19: setChanged();
20: }
21:
22: public void notifyChanged(int code, Object arg) {
23: notifyObservers(new SalomeEvent(code, arg));
24: setChanged();
25: }
26:
27: public void notifyChanged(int code, Object arg, Object oldV,
28: Object newV) {
29: notifyObservers(new SalomeEvent(code, arg, oldV, newV));
30: setChanged();
31: }
32: }
|