Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.IShareWithC Interface Reference
Inheritance diagram for de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.IShareWithC:
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.ShareWithC

List of all members.

Public Member Functions

void multipleBuddies (String projectName, JID...inviteeBaseJIDS) throws RemoteException
void buddy (JID jid) throws RemoteException
void addToSarosSession () throws RemoteException

Detailed Description

This interface contains convenience API to perform actions activated by clicking subMenus of contextMenu StfRemoteObject#CM_SHARE_WITH in the package explorer view. STF users would start off as follows:

 //
 // init alice and bob
 //
 initTesters(TypeOfTester.ALICE, Tester.BOB);
 //
 // clean up workbench
 //
 setUpWorkbench();
 //
 // open sarosViews, connect...
 //
 setUpSaros();
 //
 // alice create a new java project with name Foo_bar
 //
 alice.superBot().views().packageExplorerView().tree().newC()
     .javaProject("Foo_bar");
 //
 // alice share the project Foo_bar with bob
 //
 alice.superBot().views().packageExplorerView().selectProject("Foo_bar")
     .shareWith().buddy(bob.getJID());
 

For more information on how to write STF-Tests please read the user guide.

Author:
lchen

Member Function Documentation

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.IShareWithC.addToSarosSession ( ) throws RemoteException
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.IShareWithC.buddy ( JID  jid) throws RemoteException

Perform the action share project with the given user which should be activated by clicking the contextMenu Share With-> [user's account] of the given project in the package explorer view.

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The function treat also the event e.g. popUpWindow activated by clicking the contextMenut
Parameters:
jid
Exceptions:
RemoteException

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.ShareWithC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.IShareWithC.multipleBuddies ( String  projectName,
JID...  inviteeBaseJIDS 
) throws RemoteException

Perform the action share project with multiple buddies which should be activated by clicking the contextMenu Share With-> multiple buddies of the given project in the package explorer view.

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The function treat also the event e.g. popUpWindow activated by clicking the contextMenut
Parameters:
inviteeBaseJIDSthe base JIDs of the users with whom you want to share your project.
Exceptions:
RemoteException

FIXME: Can't click the contextMenu

Implemented in de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.ShareWithC.

 All Classes Namespaces Files Functions Variables Enumerations