}
else {
proposalString = prefix + proposalString + suffix;
}
}
AssistInfo assist = new AssistInfo(proposalString);
assist.setOffset(dotIndex);
if (proposal instanceof WodDeprecatedCompletionProposal) {
assist.setDeprecated(true);
}
attributeValuesList.add(assist);
}
}
catch (JavaModelException e) {
e.printStackTrace();
}
attributeValues = attributeValuesList.toArray(new AssistInfo[attributeValuesList.size()]);
}
else if ("name".equals(attrInfo.getAttributeName()) && WodHtmlUtils.isWOTag(tagName)) {
List<AssistInfo> attributeValuesList = new LinkedList<AssistInfo>();
try {
IWodModel wodModel = _cache.getWodEntry().getModel();
if (wodModel != null) {
for (IWodElement wodElement : wodModel.getElements()) {
String wodElementName = wodElement.getElementName();
if (wodElementName.toLowerCase().startsWith(value.toLowerCase())) {
AssistInfo assist = new AssistInfo(wodElementName);
attributeValuesList.add(assist);
}
}
}
}