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

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


      //list of architectures
      return (Object[])m_EntityArchList.get(e.getName().toUpperCase()).toArray();
    }
    //architecture
    else if (parentElement instanceof ArchitectureElement) {
      ArchitectureElement arch = (ArchitectureElement) parentElement;
      Vector<VhdlOutlineElement> childInstantiations=new Vector<VhdlOutlineElement>();
      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();
View Full Code Here


      //list of architectures
      return (archList.size() != 0);
    }
    //architecture
    else if (element instanceof ArchitectureElement) {
      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;
View Full Code Here

    //scan for architectures   
    topLevelElements = database.findTopLevelElements("");
    for (int i=0;i<topLevelElements.length;i++){
      //architectures
      if (topLevelElements[i] instanceof ArchitectureElement) {
        ArchitectureElement arch = (ArchitectureElement) topLevelElements[i];
        String archEntityName=arch.GetEntityName().toUpperCase();
        //if the entity name exists, get its list otherwise create a list
        if(m_EntityArchList.containsKey(archEntityName)){         
          archList=m_EntityArchList.get(archEntityName);
        }
        else{
View Full Code Here

              }
            }
          }
          // jump to architecture
           if(elements[i] instanceof ArchitectureElement ){
             ArchitectureElement architureElement =(ArchitectureElement)elements[i];
             if(architureElement.GetEntityName().equalsIgnoreCase(selectionText)){
               editor.showElement(architureElement);
             }
           }
          
           if(elements[i] instanceof PackageDeclElement ){
View Full Code Here

          if(children[i].getName().equalsIgnoreCase(name)){
            results.add(children[i]);
          }
        }
        if (currentElement instanceof ArchitectureElement) {
          ArchitectureElement arch = (ArchitectureElement) currentElement;
          entityName=arch.GetEntityName();
         
        }       
        currentElement=currentElement.getParent();
      }     
     
View Full Code Here

            ((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);
              if(el!=null) {
                //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.ArchitectureElement

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.