예제 #1
0
 public void openWith(String editorType) throws RemoteException {
   treeItem.contextMenus(CM_OPEN_WITH, CM_OTHER).click();
   remoteBot().waitUntilShellIsOpen(SHELL_EDITOR_SELECTION);
   IRemoteBotShell shell_bob = remoteBot().shell(SHELL_EDITOR_SELECTION);
   shell_bob.activate();
   shell_bob.bot().table().getTableItem(editorType).select();
   shell_bob.bot().button(OK).waitUntilIsEnabled();
   shell_bob.confirm(OK);
 }
예제 #2
0
  public void paste(String target) throws RemoteException {
    if (treeItem == null) {
      tree.contextMenu(MENU_PASTE).click();
      IRemoteBotShell shell = remoteBot().shell(SHELL_COPY_PROJECT);
      shell.activate();
      shell.bot().textWithLabel("Project name:").setText(target);
      shell.bot().button(OK).click();
      remoteBot().waitUntilShellIsClosed(SHELL_COPY_PROJECT);
      remoteBot().sleep(1000);
    }
    // switch (type) {
    // case PROJECT:

    // break;
    // default:
    // break;
    // }
  }