use of org.csstudio.autocomplete.parser.FunctionDescriptor in project yamcs-studio by yamcs.
the class FormulaContentParser method handlePV.
private void handlePV(ExprPV pv) {
String name = pv.getName();
if (!name.endsWith("'")) {
String value = name.substring(1);
int startIndex = contentToParse.length() - value.length() + 1;
currentToken = new FunctionDescriptor();
currentToken.setValue(value);
currentToken.setStartIndex(startIndex);
currentToken.setContentType(ContentType.PV);
currentToken.setReplay(true);
}
}
Aggregations