Package net.sourceforge.veditor.parser

Examples of net.sourceforge.veditor.parser.OutlineContainer


     
      if(!atLeftOfComponentInstantion) { 
        for(OutlineElement element:definitions) {
          String commentString;
          OutlineDatabase cc=doc.getOutlineDatabase();
          OutlineContainer pp=cc.getOutlineContainer(element.getFile());
          results+=pp.getCommentsNear(element);
          if(doc instanceof VhdlDocument){
            commentString="--";
          }
          else{
            commentString="//";
View Full Code Here


  public OutlineContainer getOutlineContainer(boolean bRefreshIfNeeded) throws HdlParserException{
    OutlineDatabase database=getOutlineDatabase();
    if (database == null){
      return null;
    }
    OutlineContainer results=database.getOutlineContainer(getFile());
    if(results==null || bRefreshIfNeeded){
      refreshOutline();
    }
   
    return database.getOutlineContainer(getFile());
View Full Code Here

      e.printStackTrace();     
    }

    if (entityName != null){
      OutlineDatabase database = getOutlineDatabase();
      OutlineContainer outline = database.getOutlineContainer(getFile());
      Object[] children= outline.getTopLevelElements();
     
      for (int i=0;i<children.length;i++){
        if (children[i] instanceof EntityDeclElement) {
          EntityDeclElement entityDecl = (EntityDeclElement) children[i];     
          //if we find an entity declaration, add the ports and generics
View Full Code Here

  }

  public Object[] getElements(Object inputElement)
  {   
    HdlDocument doc = (HdlDocument)inputElement;
    OutlineContainer outlineContainer=null;
   
    try {
      outlineContainer=doc.getOutlineContainer();
      if(outlineContainer != null){
        return outlineContainer.getTopLevelElements();
      }
    } catch (HdlParserException e) {
 
    }
    return new Object[0];
View Full Code Here

   * shows the current object in the hierarchy
   */
  public void showInHierarchy(){
    Point cursor=getCursorLocation();   

    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

   * Shows the current line in the hierarchy view
   */
  public void showInOutline(){
    Point cursor=getCursorLocation();   

    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

  }
 
  private void checkSyntax()
  {
    HdlDocument doc = getHdlDocument()
    OutlineContainer outlineContainer;
   
    if(doc == null){
      return;
    }
    // check for non-workspace file
    IFile file = doc.getFile();
    if (file == null)
      return;
   
    try
    {
      outlineContainer=doc.getOutlineContainer();
      //update the folding structure
      updateFoldingStructure(outlineContainer.getCollapsibleRegions());
    }
    catch (HdlParserException e)
    {     
     
    }   
View Full Code Here

    //if no entity was found, bail
    if (entityName == null){
      return;
    }
    OutlineDatabase database = doc.getOutlineDatabase();
    OutlineContainer outline = database.getOutlineContainer(file);
    Object[] children= outline.getTopLevelElements();
   
    for (int i=0;i<children.length;i++){
      if (children[i] instanceof EntityDeclElement) {
        EntityDeclElement entityDecl = (EntityDeclElement) children[i];     
        //if we find an entity declaration, add the ports and generics
View Full Code Here

    }
   
    // now search in the port of the entity of this architecture:
    if(architectureEntityName!=null){
      OutlineDatabase database = doc.getOutlineDatabase();
      OutlineContainer outline = database.getOutlineContainer(doc.getFile());
      OutlineElement[] children= outline.getTopLevelElements();
     
      for (OutlineElement child:children){
        if (! (child instanceof EntityDeclElement)) continue;
        EntityDeclElement entityDecl = (EntityDeclElement) child;     
        //if we find an entity declaration, search ports for signalname
View Full Code Here

TOP

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

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.