Merge "Save cluster sets only when creating DB snapshots"
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / GraphChangeListenerSupportImpl.java
1 package fi.vtt.simantics.procore.internal;
2
3 import org.simantics.db.event.ChangeListener;
4 import org.simantics.db.service.GraphChangeListenerSupport;
5
6 public class GraphChangeListenerSupportImpl implements GraphChangeListenerSupport {
7         
8         final private SessionImplSocket session;
9         
10         GraphChangeListenerSupportImpl(SessionImplSocket session) {
11                 this.session = session;
12         }
13     
14     @Override
15     public void addListener(ChangeListener l) {
16         session.changeListeners2.add(l);
17     }
18
19     @Override
20     public void removeListener(ChangeListener l) {
21         session.changeListeners2.remove(l);
22     }
23
24     @Override
25     public void addMetadataListener(ChangeListener l) {
26         session.metadataListeners.add(l);
27     }
28
29     @Override
30     public void removeMetadataListener(ChangeListener l) {
31         session.metadataListeners.remove(l);
32     }
33     
34 }