@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();
 }
예제 #3
0
 @Override
 protected void doOnSessionEnd(ISarosSession sarosSession) {
   editorManager.removeSharedEditorListener(editorListener);
 }
예제 #4
0
 @Override
 protected void doOnSessionStart(ISarosSession sarosSession) {
   editorManager.addSharedEditorListener(editorListener);
   // set local users JID at the beginning of the session
   localUser = sarosSession.getLocalUser();
 }