private void doEnumAllValues(IBuildObject cfgBo) {
    ITool thisTool = getTool(cfgBo, "enablement.this.child_1.2.3");
    ITool otherTool = getTool(cfgBo, "enablement.other");

    IBuildObject thisCfg = thisTool.getParent();
    IBuildObject otherCfg = otherTool.getParent();

    for (int i = 0; i < thisStrings.length; i++) {
      String strVal = thisStrings[i];
      setOption(cfgBo, thisTool, "this.string", strVal);
      doTestEnablement(cfgBo);
    }
    /*
    		for(int i = 0; i < thisEnumIds.length; i++){
    			String strVal = thisEnumIds[i];
    			setOption(cfgBo, thisTool, "this.enum", strVal);
    			doTestEnablement(cfgBo);
    		}
    */
    setOption(cfgBo, thisTool, "this.boolean", false);
    doTestEnablement(cfgBo);

    setOption(cfgBo, thisTool, "this.boolean", true);
    doTestEnablement(cfgBo);
  }
Exemple #2
0
  public IToolChain getBaseToolChain() {
    ITool tools[] = getToolsToInvoke();
    ITool baseTool = null;
    for (int i = 0; i < tools.length; i++) {
      ITool tool = tools[i];
      ITool superTool = tool.getSuperClass();
      if (superTool != null) {
        baseTool = superTool;
        if (!superTool.isExtensionElement()) {
          break;
        }
      }
    }

    IToolChain baseTc = null;
    if (baseTool != null) {
      IBuildObject parent = baseTool.getParent();
      if (parent instanceof IToolChain) {
        baseTc = (IToolChain) parent;
      } else if (parent instanceof ResourceConfiguration) {
        baseTc = ((ResourceConfiguration) parent).getBaseToolChain();
      }
    }

    return baseTc;
  }