Package net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.EntityInstElement


      OutlineElement[] children= arch.getChildren();
      //return all the instantiations
      for(int i=0; i< children.length;i++){
        if (children[i] instanceof EntityInstElement) {
          //do not add recursive children
          EntityInstElement e = (EntityInstElement)children[i];
          if(e.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
            childInstantiations.add(e);
          }
        }
        if (children[i] instanceof ComponentInstElement) {
          //do not add recursive children
          ComponentInstElement comp = (ComponentInstElement)children[i];
          if(comp.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
            childInstantiations.add(comp);
          }         
        }
      }
      return (Object[]) childInstantiations.toArray();
    }
    //child instantiation
    else if (parentElement instanceof EntityInstElement) {
      EntityInstElement entityInst = (EntityInstElement) parentElement;
      String entityName= entityInst.GetEntityName().toUpperCase();
      //list of architectures for this entity
      return (Object[])m_EntityArchList.get(entityName).toArray();
    }
    else if (parentElement instanceof ComponentInstElement) {
      ComponentInstElement compInst = (ComponentInstElement) parentElement;
View Full Code Here


      ArchitectureElement arch = (ArchitectureElement) element;     
      OutlineElement[] children= arch.getChildren();     
      //return all the instantiations
      for(int i=0; i< children.length;i++){
        if (children[i] instanceof EntityInstElement) {
          EntityInstElement entityInst = (EntityInstElement)children[i];
          //if we hit one instantiation, we've got children
          //beware of recursive definitions
          if(entityInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
            return true;
          }
        }
        if (children[i] instanceof ComponentInstElement) {
          ComponentInstElement componentInst = (ComponentInstElement)children[i];
          //if we hit one instantiation, we've got children
          //beware of recursive definitions
          if(componentInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
            return true;
          }         
        }
      }
      return false;
    }
    //child instantiation
    else if (element instanceof EntityInstElement) {
      EntityInstElement entityInst = (EntityInstElement) element;
      String entityName= entityInst.GetEntityName().toUpperCase();
      //list of architectures for this entity
      Vector<ArchitectureElement> archList=m_EntityArchList.get(entityName);
      if(archList==null){
        return false;
      }
View Full Code Here

      for(int i=0; i<archList.size();i++){
        OutlineElement[] childElements=archList.get(i).getChildren();
        //go through all the instances
        for(int j=0;j< childElements.length; j++){
          if (childElements[j] instanceof EntityInstElement) {
            EntityInstElement entityInst = (EntityInstElement) childElements[j];
            String nameParts[] = entityInst.GetEntityName().toUpperCase().split("\\.");
            String n=
              nameParts.length==0 ? entityInst.GetEntityName() : nameParts[nameParts.length-1];
            //remove the name from the top level
            topLevelEntities.remove(n.toUpperCase());
          }
          if (childElements[j] instanceof ComponentInstElement) {
            ComponentInstElement compInst = (ComponentInstElement) childElements[j];
View Full Code Here

                //VerilogPlugin.println("showelement "+el);
                editor.showElement(el);
              }
            }
            if(componenttype.startsWith("entityInst#")) {
              EntityInstElement entityInst = (EntityInstElement)outlineElement;
             
              ArchitectureElement el = ((VhdlHierarchyProvider)(prov)).getArchElement(entityInst.GetEntityName());
              if(el!=null) {
                editor.showElement(el);
              }
            }
          }
View Full Code Here

TOP

Related Classes of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.EntityInstElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.