Esempio n. 1
0
  private void initIgnoredComponents(Ripper ripper) {
    List<FullComponentType> lIgnoredComps = new ArrayList<FullComponentType>();
    ComponentListType ignoredAll = getXmlConfig().getIgnoredComponents();

    if (ignoredAll != null) {
      for (FullComponentType fullComp : ignoredAll.getFullComponent()) {
        ComponentType comp = fullComp.getComponent();

        if (comp == null) {
          ComponentType win = fullComp.getWindow();
          ComponentTypeWrapper winAdapter = new ComponentTypeWrapper(win);
          String ID = winAdapter.getFirstValueByName(GUITARConstants.ID_TAG_NAME);
          if (ID != null) {
            SitarConstants.sIgnoredWins.add(ID);
          }

        } else {
          lIgnoredComps.add(fullComp);
        }
      }
    }

    GComponentFilter filter = new SitarIgnoreWidgetFilter(lIgnoredComps);
    ripper.addComponentFilter(filter);
  }
Esempio n. 2
0
  private void initTerminalComponents() {
    List<FullComponentType> cTerminalList =
        getXmlConfig().getTerminalComponents().getFullComponent();

    for (FullComponentType cTermWidget : cTerminalList) {
      ComponentType component = cTermWidget.getComponent();
      AttributesType attributes = component.getAttributes();
      if (attributes != null) {
        // TODO don't use global variable
        SitarConstants.sTerminalWidgetSignature.add(
            new AttributesTypeWrapper(component.getAttributes()));
      }
    }
  }