protected Object[] getDescriptionArgs( InstrumentParameter checkedParameter, ActiveInstrumentRunService activeRunService) { InstrumentParameter otherParameter = activeRunService.getInstrumentType().getInstrumentParameter(parameterCode); if (percent != null && offset == null) { return new Object[] {checkedParameter.getLabel(), otherParameter.getLabel(), percent}; } else if (percent == null && offset != null) { return new Object[] { checkedParameter.getLabel(), otherParameter.getLabel(), offset, checkedParameter.getMeasurementUnit() }; } else { return new Object[] { checkedParameter.getLabel(), otherParameter.getLabel(), percent, offset, checkedParameter.getMeasurementUnit() }; } }
protected Object[] getDescriptionArgs( InstrumentParameter checkedParameter, ActiveInstrumentRunService activeRunService) { InstrumentParameter otherParameter = activeRunService.getInstrumentType().getInstrumentParameter(parameterCode); return new Object[] {checkedParameter.getLabel(), otherParameter.getLabel()}; }