Examples of VhdlInstanceCompletionProposal


Examples of net.sourceforge.veditor.editor.completionProposals.VhdlInstanceCompletionProposal

       
        matchList = new ArrayList<IComparableCompletionProposal>();
       
        for (int i = 0; i < elements.length; i++) {
          if(elements[i] instanceof PackageDeclElement){
            matchList.add(new VhdlInstanceCompletionProposal(doc, elements[i], documentOffset, match2.length()));
          }
        }
      } else { // record member auto completion
        String recordname = null;
        recordname = getSignalType(doc, documentOffset, matchword[0], currentElement);
View Full Code Here

Examples of net.sourceforge.veditor.editor.completionProposals.VhdlInstanceCompletionProposal

   
    if (database != null) {
      OutlineElement[] elements = database.findTopLevelElements(replace);
      for (int i = 0; i < elements.length; i++) {
        if(VhdlInstanceCompletionProposal.canHandle(elements[i])) {
          matchList.add(new VhdlInstanceCompletionProposal(doc,
              elements[i], offset, length));       
        }
      }
      //look into packages
      elements = database.findTopLevelElements("");
      for (int i = 0; i < elements.length; i++) {
        if(elements[i] instanceof PackageDeclElement){
          OutlineElement[] subPackageElements=elements[i].getChildren();
          for(int j=0; j< subPackageElements.length; j++){
            if(VhdlInstanceCompletionProposal.canHandle(subPackageElements[j]) &&
                subPackageElements[j].getName().toLowerCase().startsWith(replace.toLowerCase())){
              matchList.add(new VhdlInstanceCompletionProposal(doc,
                  subPackageElements[j], offset, length));
            }
          }
        }
      }
View Full Code Here

Examples of net.sourceforge.veditor.editor.completionProposals.VhdlInstanceCompletionProposal

           if(typesplit.length!=3) continue;
           if(typesplit[0].compareToIgnoreCase("port")!=0) continue;
           signals = signals + ( "\tsignal " + port + " : " + typesplit[2] + ";\n" );
       }
      
       VhdlInstanceCompletionProposal prop = new VhdlInstanceCompletionProposal(doc, mod, offset, length);
       String module_def = prop.getReplaceString();
       module_def = module_def.replace("\n", "\n\t");

    String indentationstring = VerilogPlugin.getIndentationString();
    results=results.replace("${testbench}", test_bench);
    results=results.replace("${signals}", signals);
View Full Code Here

Examples of net.sourceforge.veditor.editor.completionProposals.VhdlInstanceCompletionProposal

        if (entityDecl.getName().equalsIgnoreCase(entityName)) {       
          //get the entity's children
          OutlineElement[] enitityChildren=entityDecl.getChildren();
          for(int entChildIdx=0;entChildIdx<enitityChildren.length;entChildIdx++){
            ifenitityChildren[entChildIdx].getName().toUpperCase().startsWith(replace.toUpperCase())){
              matchList.add(new
                  VhdlInstanceCompletionProposal(doc,
                      enitityChildren[entChildIdx],
                      offset,
                      length));
            }
View Full Code Here

Examples of net.sourceforge.veditor.editor.completionProposals.VhdlInstanceCompletionProposal

      }
     
      for(int i=0;i < children.length;i++){
        if (VhdlInstanceCompletionProposal.canHandle(children[i])) {
          if(children[i].getName().toLowerCase().startsWith(replace.toLowerCase())){
            matchList.add(new VhdlInstanceCompletionProposal(doc,children[i], offset, length));
          }
        }
      }
      if (parent.getParent() instanceof VhdlOutlineElement) {
        parent = (VhdlOutlineElement) parent.getParent();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.