コード例 #1
0
  public boolean adjustTool(IResourceInfo info, ITool tool, boolean extensionAdjustment) {
    boolean adjusted = false;
    AdjustmentContext context = extensionAdjustment ? null : new AdjustmentContext();
    for (int i = 0; i < fExpressions.length; i++) {
      if (fExpressions[i].adjustTool(info, tool, context, extensionAdjustment)) adjusted = true;
    }

    if (context != null) {
      String unadjusted[] = context.getUnadjusted();
      for (int i = 0; i < unadjusted.length; i++) {
        OptionEnablementExpression.adjustTool(info, tool, unadjusted[i], null, extensionAdjustment);
      }
    }

    return adjusted;
  }
コード例 #2
0
  public boolean adjustConfiguration(IConfiguration cfg, boolean extensionAdjustment) {
    boolean adjusted = false;
    AdjustmentContext context = extensionAdjustment ? null : new AdjustmentContext();
    for (int i = 0; i < fExpressions.length; i++) {
      if (fExpressions[i].adjustConfiguration(cfg, context, extensionAdjustment)) adjusted = true;
    }

    if (context != null) {
      String unadjusted[] = context.getUnadjusted();
      for (int i = 0; i < unadjusted.length; i++) {
        OptionEnablementExpression.adjustConfiguration(
            cfg, unadjusted[i], null, extensionAdjustment);
      }
    }

    return adjusted;
  }
コード例 #3
0
  /*	public boolean performAdjustment(IBuildObject configuration,
  			IHoldsOptions holder, IOption option, boolean extensionAdjustment){
  		boolean adjusted = false;
  		for(int i = 0; i < fExpressions.length; i++){
  			if(fExpressions[i].performAdjustment(configuration, holder, option, extensionAdjustment))
  				adjusted = true;
  		}
  		return adjusted;
  	}
  */
  public boolean adjustOption(
      IResourceInfo rcInfo, IHoldsOptions holder, IOption option, boolean extensionAdjustment) {
    boolean adjusted = false;
    AdjustmentContext context = extensionAdjustment ? null : new AdjustmentContext();
    for (int i = 0; i < fExpressions.length; i++) {
      if (fExpressions[i].adjustOption(rcInfo, holder, option, context, extensionAdjustment))
        adjusted = true;
    }

    if (context != null) {
      String unadjusted[] = context.getUnadjusted();
      for (int i = 0; i < unadjusted.length; i++) {
        OptionEnablementExpression.adjustOption(
            rcInfo, holder, option, unadjusted[i], null, extensionAdjustment);
      }
    }
    return adjusted;
  }