Ejemplo n.º 1
0
 public void delete() throws RemoteException {
   treeItem.contextMenus(CM_DELETE).click();
   switch (type) {
     case PROJECT:
       remoteBot().shell(SHELL_DELETE_RESOURCE).confirmWithCheckBox(OK, true);
       remoteBot().waitUntilShellIsClosed(SHELL_DELETE_RESOURCE);
       break;
     case JAVA_PROJECT:
       remoteBot().shell(SHELL_DELETE_RESOURCE).confirmWithCheckBox(OK, true);
       remoteBot().waitUntilShellIsClosed(SHELL_DELETE_RESOURCE);
       break;
     default:
       remoteBot().waitUntilShellIsOpen(CONFIRM_DELETE);
       remoteBot().shell(CONFIRM_DELETE).activate();
       remoteBot().shell(CONFIRM_DELETE).bot().button(OK).click();
       remoteBot().sleep(300);
       break;
   }
   tree.waitUntilItemNotExists(treeItem.getText());
 }