Examples of OutlineElement


Examples of net.sourceforge.veditor.parser.OutlineElement

    OutlineContainer container;
    try {
      container = getHdlDocument().getOutlineContainer();
      if(container!=null){
        OutlineElement element=container.getLineContext(cursor.x, cursor.y);
        if (element!=null && outlinePage != null){
            outlinePage.showElement(element);
        }
     
      } 
View Full Code Here

Examples of net.sourceforge.veditor.parser.OutlineElement

  public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,
      int documentOffset) {
    HdlDocument doc = (HdlDocument) viewer.getDocument();
    String match = getMatchingWord(doc.get(), documentOffset);
    List<IComparableCompletionProposal> matchList = null;
    OutlineElement currentElement=null;
   
    doc.getFile();
    int context =VhdlDocument.VHDL_GLOBAL_CONTEXT;
    try
      context = doc.getContext(documentOffset);
View Full Code Here

Examples of net.sourceforge.veditor.parser.OutlineElement

    ISelection selection = event.getSelection();

    if (!selection.isEmpty())
    {
      OutlineElement outlineElement =
        (OutlineElement) ((IStructuredSelection)selection).getFirstElement();     
         
      editor.showElement(outlineElement);           
    }
  }
View Full Code Here

Examples of net.sourceforge.veditor.parser.OutlineElement

      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);
View Full Code Here

Examples of net.sourceforge.veditor.parser.OutlineElement

   * @param item
   * @return
   */
  protected TreeItem findTreeItem(TreeItem item,OutlineElement element){
    if (item.getData() instanceof OutlineElement) {
      OutlineElement e = (OutlineElement) item.getData();
      if(e.equals(element)){
        return item;
      }     
    }
    //look through the children
    for(TreeItem child:item.getItems()){
View Full Code Here

Examples of net.sourceforge.veditor.parser.OutlineElement

    return ParserFactory.createVerilogParser(text, getProject(), getFile());
  }
 
  public Vector<OutlineElement> getDefinitionList(String name, int offset) {
    Vector<OutlineElement> results=new Vector<OutlineElement>();
    OutlineElement   currentElement;
   
    try {     
      currentElement= getElementAt(offset,true);
      //work backwards
      while (currentElement!= null){
        OutlineElement[] children=currentElement.getChildren();
        for(int i=0;i<children.length;i++){
          if(children[i].getName().equalsIgnoreCase(name)){
            results.add(children[i]);
          }
        }
        currentElement=currentElement.getParent();
      }
      //Global definitions
      OutlineDatabase database=getOutlineDatabase();
      for(OutlineElement element: database.findTopLevelElements(name, true)){
        if (element instanceof VerilogModuleElement &&           
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.