Entry[] entries = document.getEntries(IXMLSearchConstants.COMPONENT_DECL, null, 0);
for (int i = 0; i < entries.length; i++)
{
// TODO.. don't assume this is just a component declaration entry
ComponentDeclarationEntry entry = (ComponentDeclarationEntry)entries[i];
SearchMatch searchMatch = new SearchMatch(null, 0, 0, file);
searchMatch.map.put("name", entry.getName()); //$NON-NLS-1$
searchMatch.map.put("metaName", entry.getMetaName()); //$NON-NLS-1$
try
{
requestor.acceptSearchMatch(searchMatch);