}
public Set<String> computeValues(TMLRegion region, IDocument document, ITextViewer viewer, IFile activeFile) {
Set<String> allValues = new HashSet<String>(_values);
AttributeValueLookup lookup = null;
if (_valueLookupClass != null) {
try {
lookup = (AttributeValueLookup) Class.forName(_valueLookupClass.trim()).newInstance();
} catch (Exception e) {
Plugin.getDefault().logError("Unable to intitialize attribute value lookup '" + _valueLookupClass + "'.", e);
}
}
if (lookup != null) {
allValues.addAll(lookup.lookupValues(region, document, viewer, activeFile));
}
return allValues;
}