}
@Override
public Vector<OutlineElement> getDefinitionList(String name, int offset) {
Vector<OutlineElement> results=new Vector<OutlineElement>();
OutlineElement currentElement;
String entityName=null;
try {
currentElement=getElementAt(offset,true);
//work backwards
while (currentElement!= null){
OutlineElement[] children=currentElement.getChildren();
for(int i=0;i<children.length;i++){
if(children[i].getName().equalsIgnoreCase(name)){
results.add(children[i]);
}
}
if (currentElement instanceof ArchitectureElement) {
ArchitectureElement arch = (ArchitectureElement) currentElement;
entityName=arch.GetEntityName();
}
currentElement=currentElement.getParent();
}
} catch (BadLocationException e) {
} catch (HdlParserException e) {
e.printStackTrace();