Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView Interface Reference
Inheritance diagram for de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView:
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView

List of all members.

Public Member Functions

IContextMenusInPEView tree () throws RemoteException
IContextMenusInPEView selectSrc (String projectName) throws RemoteException
IContextMenusInPEView selectJavaProject (String projectName) throws RemoteException
IContextMenusInPEView selectJavaProjectWithRegex (String projectName) throws RemoteException
IContextMenusInPEView selectProject (String projectName) throws RemoteException
IContextMenusInPEView selectProjectWithRegex (String projectName) throws RemoteException
IContextMenusInPEView selectPkg (String projectName, String pkg) throws RemoteException
IContextMenusInPEView selectPkgWithRegex (String projectName, String pkg) throws RemoteException
IContextMenusInPEView selectClass (String projectName, String pkg, String className) throws RemoteException
IContextMenusInPEView selectClassWithRegex (String projectName, String pkg, String className) throws RemoteException
IContextMenusInPEView selectFolder (String projectName, String...folderNodes) throws RemoteException
IContextMenusInPEView selectFile (String projectName, String...fileNodes) throws RemoteException
String getTitle () throws RemoteException
boolean isProjectManagedBySVN (String projectName) throws RemoteException
boolean isResourceShared (String path) throws RemoteException
String getRevision (String fullPath) throws RemoteException
String getURLOfRemoteResource (String fullPath) throws RemoteException
void waitUntilFolderExists (String...folderNodes) throws RemoteException
void waitUntilFolderNotExists (String...folderNodes) throws RemoteException
void waitUntilPkgExists (String projectName, String pkg) throws RemoteException
void waitUntilPkgNotExists (String projectName, String pkg) throws RemoteException
void waitUntilClassExists (String projectName, String pkg, String className) throws RemoteException
void waitUntilClassNotExists (String projectName, String pkg, String className) throws RemoteException
void waitUntilFileExists (String...fileNodes) throws RemoteException
void waitUntilFileNotExists (String...fileNodes) throws RemoteException
void waitUntilWindowSarosRunningVCSOperationClosed () throws RemoteException
void waitUntilProjectInSVN (String projectName) throws RemoteException
void waitUntilProjectNotInSVN (String projectName) throws RemoteException
void waitUntilRevisionIsSame (String fullPath, String revisionID) throws RemoteException
void waitUntilUrlIsSame (String fullPath, String url) throws RemoteException
String getFileContent (String...fileNodes) throws RemoteException, IOException, CoreException
void waitUntilFileContentSame (String otherFileContent, String...fileNodes) throws RemoteException
void waitUntilResourceIsShared (String path) throws RemoteException

Detailed Description

This interface contains methods to select treeItems in the package explorer view

Author:
lchen
Stefan Rossbach

Member Function Documentation

String de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.getFileContent ( String...  fileNodes) throws RemoteException, IOException, CoreException
Parameters:
fileNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"Foo-saros","parentFolder" ,"myFolder"}.
Returns:
the saved content of the given file. This method is different from IRemoteBotEditor#getText() , which return the text of editor, which may be not saved.
Exceptions:
RemoteException
IOException
CoreException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

String de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.getRevision ( String  fullPath) throws RemoteException
Parameters:
fullPaththe full path of the local resource, e.g. "example_project/src/org/eclipsecon/swtbot/example/MyFirstTest01.java"
Returns:
the revision id of the given resource.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

String de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.getTitle ( ) throws RemoteException
String de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.getURLOfRemoteResource ( String  fullPath) throws RemoteException
Parameters:
fullPaththe full path of the local resource, e.g. "example_project/src/org/eclipsecon/swtbot/example/MyFirstTest01.java"
Returns:
the VCS specific URL information for the given resource specified by the passed parameter"fullPath".
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.isProjectManagedBySVN ( String  projectName) throws RemoteException
Parameters:
projectNamethe name of the project
Returns:
true, if the given project is under SVN control
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

boolean de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.isResourceShared ( String  path) throws RemoteException

Tests if the given resource is shared in the current session

Parameters:
paththe full path of the local resource, e.g. "example_project/src/org/eclipsecon/swtbot/example/MyFirstTest01.java"
Returns:
true if the resource is currently shared, false otherwise
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectClass ( String  projectName,
String  pkg,
String  className 
) throws RemoteException

Select the given class

Parameters:
projectNamethe name of the project, e.g.foo_bar
pkgthe name of the package, e.g. my.pkg
classNamethe name of the class, e.g. myClass
Exceptions:
RemoteException
WidgetNotFoundExceptionif the project, package or class could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectClassWithRegex ( String  projectName,
String  pkg,
String  className 
) throws RemoteException

Select the given class matching the regular expression.

Parameters:
projectNamethe name of the project as regular expression
pkgthe name of the package as regular expression
classNamethe name of the class as regular expression
Exceptions:
RemoteException
WidgetNotFoundExceptionif the project, package or class could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectFile ( String  projectName,
String...  fileNodes 
) throws RemoteException

Select the given files

Parameters:
projectNamethe name of the project
fileNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"myFolder", "myFile.xml"}
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectFolder ( String  projectName,
String...  folderNodes 
) throws RemoteException

Selects the given folder.

Parameters:
projectNamethe name of the project
folderNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"myFolder", "foo", "bar"}
Exceptions:
RemoteException
WidgetNotFoundExceptionif the folder could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectJavaProject ( String  projectName) throws RemoteException

Selects the given Java project.

Parameters:
projectNamethe name of the Java project
Exceptions:
RemoteException
WidgetNotFoundExceptionif the Java project could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectJavaProjectWithRegex ( String  projectName) throws RemoteException

Selects the given Java project matching the regular expression.

Parameters:
projectNamethe name of the Java project as regular expression
Exceptions:
RemoteException
WidgetNotFoundExceptionif the Java project could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectPkg ( String  projectName,
String  pkg 
) throws RemoteException

Select the given package.

Parameters:
projectNamethe name of the project, e.g.foo_bar
pkgthe name of the package, e.g. my.pkg
Exceptions:
RemoteException
WidgetNotFoundExceptionif the project or package could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectPkgWithRegex ( String  projectName,
String  pkg 
) throws RemoteException

Select the given package matching the regular expression.

Parameters:
projectNamethe name of the project as regular expression
pkgthe name of the package as regular expression
Exceptions:
RemoteException
WidgetNotFoundExceptionif the project or package could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectProject ( String  projectName) throws RemoteException

Select the given project.

Parameters:
projectNamethe name of the project
Exceptions:
RemoteException
WidgetNotFoundExceptionif the project could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectProjectWithRegex ( String  projectName) throws RemoteException

Select the given project matching the regular expression.

Parameters:
projectNamethe name of the project as regular expression
Exceptions:
RemoteException
WidgetNotFoundExceptionif the project could not be found

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.selectSrc ( String  projectName) throws RemoteException
IContextMenusInPEView de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.tree ( ) throws RemoteException
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilClassExists ( String  projectName,
String  pkg,
String  className 
) throws RemoteException

Wait until the specified class exists. This method would be used, if you want to check if a shared class exists or not which is created by another session_participant.

Parameters:
projectNamename of the project, e.g. Foo_Saros.
pkgname of the package, e.g. my.pkg.
classNamename of the class, e.g. myClass.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilClassNotExists ( String  projectName,
String  pkg,
String  className 
) throws RemoteException

Wait until the specified class not exists.This method would be used, if you want to check if a shared class exists or not which is deleted by another session_participant.

Parameters:
projectNamename of the project, e.g. Foo_Saros.
pkgname of the package, e.g. my.pkg.
classNamename of the class, e.g. myClass.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilFileContentSame ( String  otherFileContent,
String...  fileNodes 
) throws RemoteException

Sometimes you want to know, if a peer(e.g. Bob) can see the changes of file, which is modified by another peer (e.g. Alice). Because of data transfer delay Bob need to wait a little to see the changes . So it will be a good idea that you give bob some time before you compare the two files from Alice and Bob.

Note: the mothod is different from IRemoteBotEditor#waitUntilIsTextSame(String), which compare only the text of editor which may be dirty.

Parameters:
otherFileContentthe file content of another peer, with which you want to compare your file content.
fileNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"Foo-saros","parentFolder" ,"myFolder"}.
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilFileExists ( String...  fileNodes) throws RemoteException

Wait until the file exists.

Parameters:
fileNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"Foo-saros", "myFolder", "myFile.xml"}

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilFileNotExists ( String...  fileNodes) throws RemoteException

Wait until the file does not exist.

Parameters:
fileNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"Foo-saros", "myFolder", "myFile.xml"}

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilFolderExists ( String...  folderNodes) throws RemoteException

Wait until the specified folder exists

Parameters:
folderNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"Foo-saros","parentFolder" ,"myFolder"}

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilFolderNotExists ( String...  folderNodes) throws RemoteException

Wait until the specified folder does not exist

Parameters:
folderNodesnode path to expand. Attempts to expand all nodes along the path specified by the node array parameter.e.g. {"Foo-saros","parentFolder" ,"myFolder"}

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilPkgExists ( String  projectName,
String  pkg 
) throws RemoteException

wait until the given package exists

Parameters:
projectNamename of the java project, e.g. Foo-Saros.
pkgname of the package, e.g. my.pkg.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilPkgNotExists ( String  projectName,
String  pkg 
) throws RemoteException

Wait until the given package not exists. This method would be used, if you want to check if a shared package exists or not which is deleted by another session_participant.

Parameters:
projectNamename of the java project, e.g. Foo-Saros.
pkgname of the package, e.g. my.pkg.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilProjectInSVN ( String  projectName) throws RemoteException

waits until the given project is in SVN control

Parameters:
projectNamethe name of the project
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilProjectNotInSVN ( String  projectName) throws RemoteException

waits until the given project is not under SVN control

Parameters:
projectNamethe name of the project
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilResourceIsShared ( String  path) throws RemoteException

Waits until the given resource is shared in the current session

Parameters:
paththe full path of the local resource, e.g. "example_project/src/org/eclipsecon/swtbot/example/MyFirstTest01.java"
Exceptions:
RemoteException
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilRevisionIsSame ( String  fullPath,
String  revisionID 
) throws RemoteException
Parameters:
fullPaththe full path of the local resource, e.g. "example_project/src/org/eclipsecon/swtbot/example/MyFirstTest01.java"
revisionIDthe expected revision.
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilUrlIsSame ( String  fullPath,
String  url 
) throws RemoteException
Parameters:
fullPaththe full path of the local resource, e.g. "example_project/src/org/eclipsecon/swtbot/example/MyFirstTest01.java"
urlthe expected URL of the remote resource, e.g. "http://myhost.com/svn/trunk/.../MyFirstTest01.java".
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.IPackageExplorerView.waitUntilWindowSarosRunningVCSOperationClosed ( ) throws RemoteException

waits until the window with the title "Saros running VCS operation" is closed

Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.view.eclipse.impl.PackageExplorerView.

 All Classes Namespaces Files Functions Variables Enumerations