Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC:
de.fu_berlin.inf.dpp.stf.server.StfRemoteObject de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC de.fu_berlin.inf.dpp.stf.shared.Constants

List of all members.

Public Member Functions

void setTree (SWTBotTree tree)
void project (String projectName) throws RemoteException
void javaProject (String projectName) throws RemoteException
void folder (String folderName) throws RemoteException
void pkg (String projectName, String pkg) throws RemoteException
void file (String fileName) throws RemoteException
void cls (String className) throws RemoteException
void cls (String projectName, String pkg, String className) throws RemoteException
void clsImplementsRunnable (String className) throws RemoteException
void javaProjectWithClasses (String projectName, String pkg, String...classNames) throws RemoteException

Static Public Member Functions

static NewC getInstance ()

Member Function Documentation

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.cls ( String  className) throws RemoteException

Performs the action "create a new class" which should be done with the following steps:

  1. if the class already exist, return
  2. Click sub menu: New -> Class
  3. Confirm pop-up window "New Java Class"
  4. waits until the pop-up window is closed

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "Class" on the package Explorer view.
Parameters:
classNamename of the class, e.g. myClass.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.cls ( String  projectName,
String  pkg,
String  className 
) throws RemoteException
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.clsImplementsRunnable ( String  className) throws RemoteException

Performs the action "create a new class that implements runnable" which should be done with the following steps:

  1. if the class already exist, return
  2. Click sub menu: New -> Class
  3. Confirm pop-up window "New Java Class"
  4. waits until the pop-up window is closed

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "Class" + extra actions on the package Explorer view.
Parameters:
classNamename of the class, e.g. myClass.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.file ( String  fileName) throws RemoteException

Performs the action "create a new file" which should be done with the following steps:

  1. if the package already exist, return
  2. Click sub menu: New -> File
  3. Confirm pop-up window "New File"
  4. waits until the pop-up window is closed

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "File" on the package Explorer view.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.folder ( String  folderName) throws RemoteException

Performs the action "create a new folder" which should be done with the following steps:

  1. If the folder already exists, return
  2. Click sub menu: New -> Folder
  3. Confirm pop-up window "New Folder"

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "Folder" on the package Explorer view.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

static NewC de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.getInstance ( ) [static]
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.javaProject ( String  projectName) throws RemoteException

Performs the action "create a java project" which should be done with the following steps:

  1. if the java project already exist, return.
  2. click context menu: New -> Java Project
  3. confirm the pop-up window "New Java Project"
  4. wait until the pop-up window is closed

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "Java Project" on the package Explorer view.
Parameters:
projectNamename of the project, e.g. Foo_Saros.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.javaProjectWithClasses ( String  projectName,
String  pkg,
String...  className 
) throws RemoteException

Create a java project and a class in the project. The two functions newJavaProject and newClass are often used, so i put them together to simplify the junit-tests.

Attention: after creating a project bot need to sleep a moment until he is allowed to create class. so if you want to create a project with a class, please use this method, otherwise you should get WidgetNotfoundException.

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

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.pkg ( String  projectName,
String  pkg 
) throws RemoteException

Performs the action "create a new package" which should be done with the following steps:

  1. if the package already exist, return
  2. Click sub menu: New -> Package
  3. Confirm pop-up window "New Java Package"
  4. waits until the pop-up window is closed

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "Package" on the package Explorer view.
Parameters:
projectNamename of the java project, e.g. Foo_Saros.
pkgname of the package, e.g. my.pkg.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.project ( String  projectName) throws RemoteException

Performs the action "create a project" which should be done with the following steps:

  1. if the project already exist, return
  2. click context menu: New -> Project
  3. confirm the pop-up window "New Project"
  4. wait until the pop-up window is closed

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The name of the method consists of the context menu's name "New" and the sub menu's name "Project..." on the package Explorer view.
Parameters:
projectNamename of the project, e.g. Foo_Saros.

Implements de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.INewC.

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.NewC.setTree ( SWTBotTree  tree)
 All Classes Namespaces Files Functions Variables Enumerations