if (elements.size() == 1)
{
Object element = elements.getFirstElement();
//VerilogPlugin.println("element "+element.toString());
if (element instanceof OutlineElement) {
OutlineElement outlineElement = (OutlineElement) element;
//VerilogPlugin.println("outlineElement "+outlineElement.toString());
//ITreeContentProvider prov = editor.getHirarchyProvider();
ITreeContentProvider prov = HdlEditor.current().getHirarchyProvider();
if(prov instanceof VhdlHierarchyProvider) {
String componenttype = outlineElement.getType();
((VhdlHierarchyProvider)(prov)).scanOutline(new VhdlDocument(editor.getHdlDocument().getProject(),outlineElement.getFile()));
//VerilogPlugin.println("VhdlHierarchyProvider!!! "+ componenttype);
if(componenttype.startsWith("componentInst#")) {
componenttype = componenttype.substring(14);
//VerilogPlugin.println("comptype: "+ componenttype);
ArchitectureElement el = ((VhdlHierarchyProvider)(prov)).getArchElement(componenttype);