Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
long | getFileSize (String projectName, String path) throws RemoteException |
boolean | existsResource (String path) throws RemoteException |
void | createFolder (String projectName, String path) throws RemoteException |
void | createProject (String projectName) throws RemoteException |
void | changeProjectEncoding (String projectName, String charset) throws RemoteException |
void | changeFileEncoding (String projectName, String path, String charset) throws RemoteException |
void | createJavaProject (String projectName) throws RemoteException |
boolean | clearWorkspace () throws RemoteException |
void | changeSarosVersion (String version) throws RemoteException |
void | resetSarosVersion () throws RemoteException |
void | createFile (String projectName, String path, String content) throws RemoteException |
void | createFile (String projectName, String path, int size, boolean compressAble) throws RemoteException |
void | createJavaClass (String projectName, String packageName, String className) throws RemoteException |
void | append (String projectName, String path, String content) throws RemoteException |
byte[] | getFileContent (String projectName, String path) throws RemoteException |
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.append | ( | String | projectName, |
String | path, | ||
String | content | ||
) | throws RemoteException |
Appends content to the give file
projectName | the name project where the java class should be created |
path | the relative path of the file e.g my/foo/bar/hello.java |
content | the content to append |
RemoteException | if the file does not exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.changeFileEncoding | ( | String | projectName, |
String | path, | ||
String | charset | ||
) | throws RemoteException |
Changes the encoding of a file.
the project must already exists
projectName | the project the file belongs to |
path | the relative path of the file e.g my/foo/bar/hello.java |
charset | the charset to use for this file |
RemoteException | if the new encoding could not be applied |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.changeProjectEncoding | ( | String | projectName, |
String | charset | ||
) | throws RemoteException |
Changes the encoding of a project
projectName | the name of the project |
charset | the charset to use for this project |
RemoteException | if the project does not exists or the charset is not available on the current remote platform |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.changeSarosVersion | ( | String | version | ) | throws RemoteException |
Changes the current Saros version to the given version
version | the version that Saros will be set to e.g 2.6.2.11 |
RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.clearWorkspace | ( | ) | throws RemoteException |
Clears the current workspace by deleting all projects
true
if all projects were successfully deleted, false
otherwise RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createFile | ( | String | projectName, |
String | path, | ||
String | content | ||
) | throws RemoteException |
Creates a file in the given project. All missing folders will be created automatically.
the project must already exists
projectName | the project where the file should be created |
path | the relative path of the file e.g my/foo/bar/hello.java |
content | the content of the file |
RemoteException | if the file could not be created or already exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createFile | ( | String | projectName, |
String | path, | ||
int | size, | ||
boolean | compressAble | ||
) | throws RemoteException |
Creates a file in the given project. All missing folders will be created automatically.
the project must already exists
projectName | the project where the file should be created |
path | the relative path of the file e.g my/foo/bar/hello.java |
size | the size of the file |
compressAble | if true the content of the file will compress into not more than a several bytes |
RemoteException | if the file could not be created or already exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createFolder | ( | String | projectName, |
String | path | ||
) | throws RemoteException |
Creates a folder in the project. All missing folders will be created automatically.
the project must already exists
projectName | the name of the project |
path | the path of the folder e.g my/foo/bar |
RemoteException | if the folder could not be created or the project do not exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createJavaClass | ( | String | projectName, |
String | packageName, | ||
String | className | ||
) | throws RemoteException |
Creates a java class in the given project. All missing packages will be created automatically.
the project must already exists
projectName | the name project where the java class should be created |
packageName | the name of the package e.g my.foo.bar |
className | the name of the class e.g HelloWorld |
RemoteException | if the class could not be created or already exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createJavaProject | ( | String | projectName | ) | throws RemoteException |
Creates a Java project
projectName | the name of the project |
RemoteException | if the project could not be created or already exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.createProject | ( | String | projectName | ) | throws RemoteException |
Creates a project
projectName | the name of the project |
RemoteException | if the project could not be created or already exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
boolean de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.existsResource | ( | String | path | ) | throws RemoteException |
Checks if the given resource exists in the current workspace.
path | the path to the resource e.g my/foo/bar |
true
if the resource exists, false
otherwise RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
byte [] de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.getFileContent | ( | String | projectName, |
String | path | ||
) | throws RemoteException |
Gets the content from the given file
projectName | the name project where the java class should be created |
path | the relative path of the file e.g my/foo/bar/hello.java |
RemoteException | if the file does not exists |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
long de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.getFileSize | ( | String | projectName, |
String | path | ||
) | throws RemoteException |
Returns the file size in bytes
projectName | the name of the project |
path | the path of the folder e.g my/foo/bar |
RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.IInternal.resetSarosVersion | ( | ) | throws RemoteException |
Resets the current Saros version to its default state as the plugin was started
RemoteException |
Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.internal.impl.InternalImpl.