Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
IRemoteBotView | view (String viewTitle) throws RemoteException |
List< String > | getTitlesOfOpenedViews () throws RemoteException |
boolean | isViewOpen (String title) throws RemoteException |
void | openViewById (String viewId) throws RemoteException |
IRemoteBotPerspective | perspectiveByLabel (String label) throws RemoteException |
IRemoteBotPerspective | perspectiveById (String id) throws RemoteException |
IRemoteBotView | viewById (String id) throws RemoteException |
IRemoteBotView | activeView () throws RemoteException |
IRemoteBotEditor | editor (String fileName) throws RemoteException |
IRemoteBotEditor | editorById (String id) throws RemoteException |
boolean | isEditorOpen (String fileName) throws RemoteException |
IRemoteBotEditor | activeEditor () throws RemoteException |
boolean | isPerspectiveOpen (String title) throws RemoteException |
boolean | isPerspectiveActive (String id) throws RemoteException |
List< String > | getPerspectiveTitles () throws RemoteException |
void | openPerspectiveWithId (final String persID) throws RemoteException |
IRemoteBotPerspective | activePerspective () throws RemoteException |
void | resetWorkbench () throws RemoteException |
void | activateWorkbench () throws RemoteException |
IRemoteBotPerspective | defaultPerspective () throws RemoteException |
void | closeAllEditors () throws RemoteException |
void | saveAllEditors () throws RemoteException |
void | resetActivePerspective () throws RemoteException |
void | waitUntilEditorOpen (final String title) throws RemoteException |
void | waitUntilEditorClosed (final String title) throws RemoteException |
void | closeAllShells () throws RemoteException |
RemoteBotChatLine | chatLine () throws RemoteException |
RemoteBotChatLine | chatLine (int index) throws RemoteException |
RemoteBotChatLine | lastChatLine () throws RemoteException |
RemoteBotChatLine | chatLine (final String regex) throws RemoteException |
void | resetBot () throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.activateWorkbench | ( | ) | throws RemoteException |
Activate the saros-instance.This method is very useful, wenn you test saros under MAC
RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
IRemoteBotEditor de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.activeEditor | ( | ) | throws RemoteException |
Returns the active workbench editor part
WidgetNotFoundException | if there is no active view |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
IRemoteBotPerspective de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.activePerspective | ( | ) | throws RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
IRemoteBotView de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.activeView | ( | ) | throws RemoteException |
Returns the active workbench view part
WidgetNotFoundException | if there is no active view |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
RemoteBotChatLine de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.chatLine | ( | ) | throws RemoteException |
RemoteBotChatLine de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.chatLine | ( | int | index | ) | throws RemoteException |
RemoteBotChatLine de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.chatLine | ( | final String | regex | ) | throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.closeAllEditors | ( | ) | throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.closeAllShells | ( | ) | throws RemoteException |
IRemoteBotPerspective de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.defaultPerspective | ( | ) | throws RemoteException |
Returns the default perspective as defined in the WorkbenchAdvisor of the application.
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
IRemoteBotEditor de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.editor | ( | String | fileName | ) | throws RemoteException |
Shortcut for editor(withPartName(title))
fileName | the the filename on the editor tab |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
IRemoteBotEditor de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.editorById | ( | String | id | ) | throws RemoteException |
Shortcut for editor(withPartId(id))
id | the the id on the editor tab |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
List<String> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.getPerspectiveTitles | ( | ) | throws RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
List<String> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.getTitlesOfOpenedViews | ( | ) | throws RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.isEditorOpen | ( | String | fileName | ) | throws RemoteException |
boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.isPerspectiveActive | ( | String | id | ) | throws RemoteException |
id | id which identify a perspective |
true
, if the perspective specified with the given id is active. Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.isPerspectiveOpen | ( | String | title | ) | throws RemoteException |
title | the title of a perspective. |
true
, if the perspective specified with the given title is open. Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.isViewOpen | ( | String | title | ) | throws RemoteException |
RemoteBotChatLine de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.lastChatLine | ( | ) | throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.openPerspectiveWithId | ( | final String | persID | ) | throws RemoteException |
Open a perspective using Window->Open Perspective->Other... The method is defined as helper method for other openPerspective* methods and should not be exported using rmi.
1. if the perspective already exist, return.
2. activate the saros-instance-window(alice / bob / carl). If the workbench isn't active, delegate can't find the main menus.
3. click main menus Window -> Open perspective -> Other....
4. confirm the pop-up window "Open Perspective".
persID | example: "org.eclipse.jdt.ui.JavaPerspective" |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.openViewById | ( | String | viewId | ) | throws RemoteException |
open the given view specified with the viewId.
viewId | the id of the view, which you want to open. |
IRemoteBotPerspective de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.perspectiveById | ( | String | id | ) | throws RemoteException |
IRemoteBotPerspective de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.perspectiveByLabel | ( | String | label | ) | throws RemoteException |
Shortcut for perspective(withPerspectiveLabel(label))
label | the "human readable" label for the perspective |
label
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.resetActivePerspective | ( | ) | throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.resetBot | ( | ) | throws RemoteException |
For internal use, do not use this method
RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.resetWorkbench | ( | ) | throws RemoteException |
Does a best effort to reset the workbench. This method attempts to:
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.saveAllEditors | ( | ) | throws RemoteException |
IRemoteBotView de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.view | ( | String | viewTitle | ) | throws RemoteException |
IRemoteBotView de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.viewById | ( | String | id | ) | throws RemoteException |
Shortcut for view(withPartId(id))
id | the view id |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.impl.RemoteWorkbenchBot.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.waitUntilEditorClosed | ( | final String | title | ) | throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.IRemoteWorkbenchBot.waitUntilEditorOpen | ( | final String | title | ) | throws RemoteException |