示例#1
0
 /**
  * Select the object in the advanced table composition.
  *
  * @param eefWidgetIdKey widget key
  * @param qualifiedIdentifier identifier of the PEE
  * @param selected object to select
  */
 public void selectInTableWithId(
     String eefWidgetIdKey, String qualifiedIdentifier, EObject selected) {
   final SWTBotTable table = tableWithId(eefWidgetIdKey, qualifiedIdentifier);
   final SWTBotTableItem tableItem = getTableItem(table, selected);
   assertNotNull("No table item is found.", tableItem);
   tableItem.select();
 }
示例#2
0
 public boolean selectSDK(File home) throws IOException {
   String path = home.getPath();
   int count = sdks.rowCount();
   for (int row = 0; row < count; ++row) {
     SWTBotTableItem item = sdks.getTableItem(row);
     if (path.equals(item.getText(2))) {
       item.check();
       return true;
     }
   }
   return false;
 }