Package net.sourceforge.veditor.parser

Examples of net.sourceforge.veditor.parser.OutlineElement


    // scan all port in instance.
    for (InstanceStore.Port port : inst.getPorts()) {
      String name = port.getName();
      int line = port.getLine();
      OutlineElement eport = findPortInModule(module, name);
      if (eport == null) {
        warning(line, MODULE_HAS_NO_PORT, moduleName, name);
      } else {
        String type = eport.getType();
        if (type.startsWith("port#input") == false) {
          Expression signal = port.getSignal();
          if (signal != null && signal.isAssignable() == false) {
            warning(line, BAD_PORT_CONNECTION, name);
          }
View Full Code Here


      editor.showElement(definitionList.get(0));
    }
    else if(definitionList.size() > 1){
      for(int i = 0; i < definitionList.size(); i++)
      {
        OutlineElement element = definitionList.get(i);
        if (element.getType().equals("module#"))
        {
          editor.showElement(element);
          return;
        }
      }
View Full Code Here

      int documentOffset)
    {
      HdlDocument doc = (HdlDocument)viewer.getDocument();
      String match = getMatchingWord(doc.get(), documentOffset);
      List<IComparableCompletionProposal> matchList = null;
      OutlineElement currentElement=null;

      int context = IParser.OUT_OF_MODULE;
      try
     
        context = doc.getContext(documentOffset - match.length());
View Full Code Here

    public void widgetSelected(SelectionEvent e) {
     
      if (e.item instanceof TableItem) {
        TableItem tableItem = (TableItem) e.item;
        if (tableItem.getData() instanceof OutlineElement) {
          OutlineElement element = (OutlineElement) tableItem.getData();
          getEditor().showElement(element);
        }
      }
      m_ProposalShell.setVisible(false);
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.eclipse.jface.viewers.LabelProvider#getText(java.lang.Object)
   */
  public String getText(Object element){
     if (element instanceof OutlineElement) {
      OutlineElement outlineElement = (OutlineElement) element;
     
      return convertToString(outlineElement);
    }
     else{
       return element.toString();
View Full Code Here

    VerilogPlugin plugin = VerilogPlugin.getPlugin();
    Image results = null;

    // if the element is an outline element
    if (element instanceof OutlineElement) {
      OutlineElement outlineElement = (OutlineElement) element;
      String imageName = getImageNameForType(outlineElement);
      results=plugin.getImage(imageName);     
    }   
   
    return results;
View Full Code Here

  }

  @Override
  public Vector<OutlineElement> getDefinitionList(String name, int offset) {
    Vector<OutlineElement> results=new Vector<OutlineElement>();   
    OutlineElement   currentElement;
    String entityName=null;
   
    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]);
          }
        }
        if (currentElement instanceof ArchitectureElement) {
          ArchitectureElement arch = (ArchitectureElement) currentElement;
          entityName=arch.GetEntityName();
         
        }       
        currentElement=currentElement.getParent();
      }     
     
    } catch (BadLocationException e) {
    } catch (HdlParserException e) {
      e.printStackTrace();     
View Full Code Here

  public Object getParent(Object element)
  {
    if (element instanceof OutlineElement)
    {
      OutlineElement e = (OutlineElement)element;
      return (Object)e.getParent();
    }
    return null;
  }
View Full Code Here

  public boolean hasChildren(Object element)
  {
    if (element instanceof OutlineElement)
    {
      OutlineElement e = (OutlineElement)element;
      return e.HasChildren();
    }
   
    return false;
  }
View Full Code Here

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

TOP

Related Classes of net.sourceforge.veditor.parser.OutlineElement

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.