Пример #1
0
  protected boolean _expandNode(
      GuiSubitemTestObject curNode, String curPath, boolean refreshAfterExpand) {
    boolean success = true;

    try {
      logTAFDebug(" < **** > Expanding [" + curPath + "] of [" + curNode + "].....");
      curNode.setState(Action.expand(), atPath(curPath));
      // curNode.doubleClick( atPath(curPath));
      // curNode.setState(Action.expandAndSelect(), atPath(curPath));
    } catch (Exception e) {
      try {
        logTAFDebug(" < **** > Expanding exception [" + e.toString() + "].....");
        if (refreshAfterExpand) {
          refreshWindow((ITopWindow) (curNode.getTopParent()));
          curNode.setState(Action.expand(), atPath(curPath));
        } else {
          throw e;
        }

      } catch (Exception er) {
        success = false;
        // logTAFWarning(er.toString());
      }
    }
    if (!success) {
      logTAFDebug(
          " < **** > Exception while trying to expand [" + curPath + "] of [" + curNode + "]");
    } else {
      logTAFDebug(" < **** > Expand [" + curPath + "] of [" + curNode + "] Success !");
    }
    return success;
  }