Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor:
de.fu_berlin.inf.dpp.stf.server.StfRemoteObject de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.IRemoteBotEditor de.fu_berlin.inf.dpp.stf.shared.Constants

List of all members.

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 ()

Member Function Documentation

void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.autoCompleteProposal ( String  insertText,
String  proposalText 
) throws RemoteException
See also:
SWTBotEclipseEditor.autoCompleteProposal(String, String)

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.

Exceptions:
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.

Exceptions:
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
See also:
SWTBotEclipseEditor.cursorPosition

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
See also:
SWTBotEclipseEditor.cursorPosition

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
See also:
SWTBotEclipseEditor.getLineBackground(int)

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
See also:
SWTBotEclipseEditor.getLineCount()

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
See also:
SWTBotEclipseEditor.getLines()

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

Returns:
the current selected text
Exceptions:
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.

Returns:
the current selected text marked by an annotation
Exceptions:
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
Returns:
the content of the editor specified with the last element of the given array, which my be dirty.
Exceptions:
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
See also:
SWTBotEclipseEditor.getTextOnCurrentLine()

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
See also:
SWTBotEclipseEditor.getTextOnLine(int)

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

Returns:
the current view port where the first entry in the list is the starting line and the second entry is the number of lines
Exceptions:
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
See also:
SWTBotEclipseEditor.isActive()

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
Returns:
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.

Parameters:
linethe line number, 0 based.
columnthe column number, 0 based.
See also:
SWTBotStyledText.navigateTo(int, int)
Exceptions:
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
See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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.

Parameters:
keysthe formal representation for key strokes
Exceptions:
RemoteException
See also:
IKeyLookup
SWTBotEclipseEditor.pressShortcut(org.eclipse.jface.bindings.keys.KeyStroke...)

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"

See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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"

See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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"

See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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"

See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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"

See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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"

See also:
SWTBotEclipseEditor.pressShortcut(int, char)

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
See also:
SWTBotEclipseEditor.quickfix(int)

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
See also:
SWTBotEclipseEditor.quickfix(String)

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
void de.fu_berlin.inf.dpp.stf.server.rmi.remotebot.widget.impl.RemoteBotEditor.selectCurrentLine ( ) throws RemoteException
See also:
SWTBotEclipseEditor.selectCurrentLine()

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
See also:
SWTBotEclipseEditor.selectLine(int)

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
See also:
SWTBotEclipseEditor.selectRange(int, int, int)

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
See also:
SWTBotEditor.setFocus()

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

Parameters:
textthe text to set
Exceptions:
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

Parameters:
paththe 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.
Exceptions:
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
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.

Parameters:
textthe text to type.
Exceptions:
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

Exceptions:
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
 All Classes Namespaces Files Functions Variables Enumerations