@Override
 public void start() {
   collector.flushFollowModes();
   session.addActivityProducer(this);
   session.addActivityConsumer(consumer);
   session.addListener(sessionListener);
   editor.addSharedEditorListener(followModeListener);
 }
 @Override
 public void stop() {
   session.removeActivityProducer(this);
   session.removeActivityConsumer(consumer);
   session.removeListener(sessionListener);
   editor.removeSharedEditorListener(followModeListener);
   collector.flushFollowModes();
 }
Beispiel #3
0
 @Override
 protected void doOnSessionEnd(ISarosSession sarosSession) {
   editorManager.removeSharedEditorListener(editorListener);
 }
Beispiel #4
0
 @Override
 protected void doOnSessionStart(ISarosSession sarosSession) {
   editorManager.addSharedEditorListener(editorListener);
   // set local users JID at the beginning of the session
   localUser = sarosSession.getLocalUser();
 }