/** {@inheritDoc} */ public String evaluate(String name, String[] parameters, IRecord record, String fieldName) throws Exception { IRecord r = RecordFinder.findRecordByPath(parameters[0], record.getContainer()); String result = null; if (r != null) { result = AliasResolutionUtil.getEpicsNameFromHierarchy(r); } else { result = "No Record found"; } return result; }
public List<IContentProposal> getParameterProposal( int parameterIndex, String[] knownParameters, IRecord record) { List<IContentProposal> result = new ArrayList<IContentProposal>(); for (IRecord r : record.getContainer().getRecords()) { result.add( new FieldFunctionContentProposal( AliasResolutionUtil.getNameFromHierarchy(r), AliasResolutionUtil.getEpicsNameFromHierarchy(r), AliasResolutionUtil.getEpicsNameFromHierarchy(r) + " Description", 0)); } return result; }