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

List of all members.

Public Member Functions

void setTree (SWTBotTree tree)
void setTreeItem (SWTBotTreeItem treeItem)
void setTreeItemType (TreeItemType type)
void moveTo (String targetProject, String folder) throws RemoteException
void moveClassTo (String targetProject, String targetPkg) throws RemoteException
void rename (String newName) throws RemoteException

Static Public Member Functions

static RefactorC getInstance ()

Member Function Documentation

static RefactorC de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.getInstance ( ) [static]
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.moveClassTo ( String  targetProject,
String  targetPkg 
) throws RemoteException

Performs the action "move class to another package" which should be done with the following steps:

  1. selects menu "Refactor -> Move..."
  2. choose the package specified by the passed parameter "targetPkg"
  3. click "OK" to confirm the move
Parameters:
targetProject
targetPkg
Exceptions:
RemoteException

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

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.moveTo ( String  targetProject,
String  targetFolder 
) throws RemoteException

Performs the action Refactor -> move

Parameters:
targetProjectthen name of the target project
targetFolderthe name of the target folder

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

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.rename ( String  newName) throws RemoteException

Perform the action "rename class" which should be done with the following steps:

  1. click menu "Refactor" > "Rename..."
  2. Enter the given new name to the text field with the title "New name:"
  3. click "OK" to confirm the rename
  4. Waits until the shell "Rename Compilation Unit" is closed. It guarantee that the "rename file" action is completely done.

Attention:

  1. Makes sure, the package explorer view is open and active.
  2. The function should treat all the recursive following actions, which are activated or indirectly activated by clicking the sub menu "rename..." . I mean, after clicking the sub menu you need to treat the following popup window too.

    Parameters:
    newNamethe new name of the given class.
    Exceptions:
    RemoteException

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

void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.setTree ( SWTBotTree  tree)
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.setTreeItem ( SWTBotTreeItem  treeItem)
void de.fu_berlin.inf.dpp.stf.server.rmi.superbot.component.contextmenu.peview.submenu.impl.RefactorC.setTreeItemType ( TreeItemType  type)
 All Classes Namespaces Files Functions Variables Enumerations