Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Classes | |
class | RemoteEditor |
class | RemoteEditorState |
Public Member Functions | |
RemoteEditorManager (ISarosSession sarosSession) | |
RemoteEditorState | getEditorState (User user) |
void | exec (IActivity activity) |
TextSelection | getSelection (User user) |
LineRange | getViewport (User user) |
void | removeUser (User participant) |
List< User > | getRemoteOpenEditorUsers (SPath path) |
List< User > | getRemoteActiveEditorUsers (SPath path) |
Set< SPath > | getRemoteOpenEditors () |
Set< SPath > | getRemoteActiveEditors () |
Set< SPath > | getRemoteOpenEditors (User user) |
RemoteEditor | getRemoteActiveEditor (User user) |
boolean | isRemoteActiveEditorShared (User user) |
Protected Attributes | |
Map< User, RemoteEditorState > | editorStates = new HashMap<User, RemoteEditorState>() |
ISarosSession | sarosSession |
This class contains the state of the editors, viewports and selections of all remote users as we believe it to be by listening to the Activities we receive.
de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.RemoteEditorManager | ( | ISarosSession | sarosSession | ) |
void de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.exec | ( | IActivity | activity | ) |
Executes the given activity.
Implementations may expect that this method is called from the UI thread (EDT).
Implements de.fu_berlin.inf.dpp.session.IActivityConsumer.
RemoteEditorState de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getEditorState | ( | User | user | ) |
RemoteEditor de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getRemoteActiveEditor | ( | User | user | ) |
Returns the active Editor which is currently open by the given user of this shared session (i.e. not our own).
null
if the given user has no editor open. Set<SPath> de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getRemoteActiveEditors | ( | ) |
Returns a set of all paths representing the editors which are currently opened and active by the remote users of this shared session (i.e. not our own).
List<User> de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getRemoteActiveEditorUsers | ( | SPath | path | ) |
Set<SPath> de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getRemoteOpenEditors | ( | ) |
Returns a set of all paths representing the editors which are currently opened by the remote users of this shared session (i.e. not our own).
If no editors are opened an empty set is being returned.
Returns a snapshot copy of all paths representing the editors which are currently opened by the given user of this shared session (i.e. not our own).
If no editors are opened by the given user an empty set is being returned.
List<User> de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getRemoteOpenEditorUsers | ( | SPath | path | ) |
TextSelection de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.getSelection | ( | User | user | ) |
Returns the selection of the given user in the currently active editor or null if the user has no active editor or no selection in the active editor.
null
if the user has no active editor. boolean de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.isRemoteActiveEditorShared | ( | User | user | ) |
void de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.removeUser | ( | User | participant | ) |
Clears all state information associated with the given user.
Map<User, RemoteEditorState> de.fu_berlin.inf.dpp.core.editor.RemoteEditorManager.editorStates = new HashMap<User, RemoteEditorState>() [protected] |