Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
void | setWidget (SWTBotEclipseEditor editor) |
void | show () throws RemoteException |
void | setFocus () throws RemoteException |
void | closeWithSave () throws RemoteException |
void | save () throws RemoteException |
void | closeWithoutSave () throws RemoteException |
void | setTextFromFile (String contentPath) throws RemoteException |
void | setText (String text) throws RemoteException |
void | typeText (String text) throws RemoteException |
void | navigateTo (int line, int column) throws RemoteException |
void | selectCurrentLine () throws RemoteException |
void | selectLine (int line) throws RemoteException |
void | selectRange (int line, int column, int length) throws RemoteException |
void | pressShortcut (String...keys) throws RemoteException |
void | pressShortCut (int modificationKeys, char c) throws RemoteException |
void | pressShortCutDelete () throws RemoteException |
void | pressShortCutEnter () throws RemoteException |
void | pressShortCutSave () throws RemoteException |
void | pressShortRunAsJavaApplication () throws RemoteException |
void | pressShortCutNextAnnotation () throws RemoteException |
void | pressShortCutQuickAssignToLocalVariable () throws RemoteException |
void | autoCompleteProposal (String insertText, String proposalText) throws RemoteException |
void | quickfix (String quickFixName) throws RemoteException |
void | quickfix (int index) throws RemoteException |
int | getLineCount () throws RemoteException |
List< String > | getLines () throws RemoteException |
String | getText () throws RemoteException |
String | getTextOnCurrentLine () throws RemoteException |
String | getTextOnLine (int line) throws RemoteException |
int | getCursorLine () throws RemoteException |
int | getCursorColumn () throws RemoteException |
RGB | getLineBackground (int line) throws RemoteException |
boolean | isDirty () throws RemoteException |
List< Integer > | getViewport () throws RemoteException |
String | getSelection () throws RemoteException |
String | getSelectionByAnnotation () throws RemoteException |
List< String > | getAutoCompleteProposals (String insertText) throws RemoteException |
boolean | isActive () throws RemoteException |
void | waitUntilIsActive () throws RemoteException |
void | waitUntilIsTextSame (final String otherText) throws RemoteException |
Static Public Member Functions | |
static RemoteBotEditor | getInstance () |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.autoCompleteProposal | ( | String | insertText, |
String | proposalText | ||
) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.closeWithoutSave | ( | ) | throws RemoteException |
close the editor without saving it. The editor must belong to this workbench page.
Any unsaved changes are discard, if the editor has unsaved content.
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.closeWithSave | ( | ) | throws RemoteException |
Saves and closes the given editor.
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
List<String> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getAutoCompleteProposals | ( | String | insertText | ) | throws RemoteException |
int de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getCursorColumn | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
int de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getCursorLine | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
static RemoteBotEditor de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getInstance | ( | ) | [static] |
RGB de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getLineBackground | ( | int | line | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
int de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getLineCount | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
List<String> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getLines | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
String de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getSelection | ( | ) | throws RemoteException |
Returns the current selected text
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
String de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getSelectionByAnnotation | ( | ) | throws RemoteException |
Returns the current selected text which is marked by an annotation. Use this method to retrieve the selected text in follow mode.
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
String de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getText | ( | ) | throws RemoteException |
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
String de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getTextOnCurrentLine | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
String de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getTextOnLine | ( | int | line | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
List<Integer> de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.getViewport | ( | ) | throws RemoteException |
Returns the current view port for the editor
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.isActive | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.isDirty | ( | ) | throws RemoteException |
true
if the contents have been modified and need saving, and false
if they have not changed since the last save. Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.navigateTo | ( | int | line, |
int | column | ||
) | throws RemoteException |
Changes the cursor position in editor.
line | the line number, 0 based. |
column | the column number, 0 based. |
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortCut | ( | int | modificationKeys, |
char | c | ||
) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortcut | ( | String... | keys | ) | throws RemoteException |
Presses the shortcut specified by the given keys.
keys | the formal representation for key strokes |
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortCutDelete | ( | ) | throws RemoteException |
press short cut "Delete"
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortCutEnter | ( | ) | throws RemoteException |
press short cut "Enter"
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortCutNextAnnotation | ( | ) | throws RemoteException |
press short cut "Next annotation"
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortCutQuickAssignToLocalVariable | ( | ) | throws RemoteException |
press short cut "Assign to local variable"
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortCutSave | ( | ) | throws RemoteException |
press short cut "Save"
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.pressShortRunAsJavaApplication | ( | ) | throws RemoteException |
press short cut "Run as java application"
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.quickfix | ( | int | index | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.quickfix | ( | String | quickFixName | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.save | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.selectCurrentLine | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.selectLine | ( | int | line | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.selectRange | ( | int | line, |
int | column, | ||
int | length | ||
) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.setFocus | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.setText | ( | String | text | ) | throws RemoteException |
sets the editor content to the content of string
text | the text to set |
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.setTextFromFile | ( | String | path | ) | throws RemoteException |
sets the editor content to the content of the file
path | the path to the test file whose content should be inserted in the text editor. All such test files are located in the directory [Saros]/test/STF. |
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.setWidget | ( | SWTBotEclipseEditor | editor | ) |
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.show | ( | ) | throws RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.typeText | ( | String | text | ) | throws RemoteException |
TODO: This function doesn't work exactly. It may be happen that the text isn't typed in the right editor, When your saros-instances are fresh started.
text | the text to type. |
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.waitUntilIsActive | ( | ) | throws RemoteException |
waits until the editor specified with the given fileName is active
RemoteException |
Implements de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor.
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.waitUntilIsTextSame | ( | final String | otherText | ) | throws RemoteException |