public Object[] getElements(Object inputElement)
{
// parse source code and get instance list
HdlDocument doc = (HdlDocument)inputElement;
try {
doc.refreshOutline();
scanOutline(doc);
return (Object[])m_TopLevelEntities.toArray();
} catch (HdlParserException e) {
}
return new Object[0];