Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction:
de.fu_berlin.inf.dpp.ui.actions.Disposable

List of all members.

Public Member Functions

 FollowThisPersonAction ()
void run ()
void dispose ()

Static Public Attributes

static final String ACTION_ID

Protected Member Functions

void updateActionEnablement ()
void updateEnablement ()
boolean canBeExecuted (List< User > users)

Protected Attributes

ISarosSessionListener sessionListener
ISharedEditorListener editorListener
ISelectionListener selectionListener
ISarosSessionManager sessionManager
EditorManager editorManager

Detailed Description

This follow mode action is used to select the person to follow.

Author:
Christopher Oezbek
Edna Rosen

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction.FollowThisPersonAction ( )

Member Function Documentation

boolean de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction.canBeExecuted ( List< User users) [protected]
void de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction.dispose ( )

Gets called when the SarosView is about to being disposed. Actions implementing this interface should release all resources and remove all installed listeners that were allocated and installed during the lifetime of the action.

Implements de.fu_berlin.inf.dpp.ui.actions.Disposable.

void de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction.run ( )

runSafe OK

void de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction.updateActionEnablement ( ) [protected]
void de.fu_berlin.inf.dpp.ui.actions.FollowThisPersonAction.updateEnablement ( ) [protected]

Member Data Documentation

Initial value:
 new AbstractSharedEditorListener() {
        @Override
        public void followModeChanged(User user, boolean isFollowed) {
            updateActionEnablement();
        }
    }
Initial value:
 new ISelectionListener() {
        @Override
        public void selectionChanged(IWorkbenchPart part, ISelection selection) {
            updateActionEnablement();
        }
    }
Initial value:
 new NullSarosSessionListener() {
        @Override
        public void sessionStarted(ISarosSession newSarosSession) {
            updateActionEnablement();
        }

        @Override
        public void sessionEnded(ISarosSession oldSarosSession) {
            updateActionEnablement();
        }
    }
 All Classes Namespaces Files Functions Variables Enumerations