Пример #1
0
 public List<String> getTextOfTreeItems() throws RemoteException {
   if (treeItem == null) {
     return tree.getTextOfItems();
   } else {
     return treeItem.getTextOfItems();
   }
 }
Пример #2
0
 public boolean exists(String name) throws RemoteException {
   if (treeItem == null) {
     return tree.getTextOfItems().contains(name);
   } else {
     return treeItem.getTextOfItems().contains(name);
   }
 }
Пример #3
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);
 }
Пример #4
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());
 }
Пример #5
0
 public boolean existsWithRegex(String name) throws RemoteException {
   if (treeItem == null) {
     for (String item : tree.getTextOfItems()) {
       if (item.matches(name + ".*")) return true;
     }
     return false;
   } else {
     for (String item : treeItem.getTextOfItems()) {
       if (item.matches(name + ".*")) return true;
     }
     return false;
   }
 }
Пример #6
0
 public void copy() throws RemoteException {
   treeItem.contextMenus(MENU_COPY).click();
 }
Пример #7
0
 public void open() throws RemoteException {
   treeItem.contextMenus(CM_OPEN).click();
 }