* @return <code>true</code> if the attribute name associated with the given offset is in the given
* list of attribute names, <code>false</code> otherwise
*/
private boolean isAttributeNameForValueInArray(String[] attributeNames, ITextRegion attrValueRegion, int offset) {
IStructuredDocumentRegion node = fStructuredDocument.getRegionAtCharacterOffset(offset);
ITextRegionList regionList = node.getRegions();
int currentIndex = regionList.indexOf(attrValueRegion);
/*
* 4 is the minimum index allowing for the tag's open, name, attribute
* name and equals character to appear first
*/
if (currentIndex < 4)
return false;
ITextRegion tagAttrNameRegion = regionList.get(currentIndex - 2);
boolean foundAttributeName = false;
if (fStructuredDocument instanceof IRegionComparible) {
int start = node.getStartOffset(tagAttrNameRegion);
for (int i = 0; !foundAttributeName && i < attributeNames.length; i++) {