Changeset 323 for trunk


Ignore:
Timestamp:
02/16/06 13:24:34 (19 years ago)
Author:
boris
Message:
  • fixed info pops to use the new elementsInfo() interface
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.core/src/org/modelica/mdt/core/compiler/ElementsInfo.java

    r321 r323  
    7272    private String path = null;
    7373    private String id = null;
     74    private String typeName = null;
     75    private String direction = null;
    7476   
    7577    public ElementsInfo(List elementsInfo)
     
    233235        return classFileName;
    234236    }
    235 
    236237   
    237238    /**
     
    246247        return id;
    247248    }
     249
     250    /**
     251     * @return the contents of 'typename' field
     252     */
     253    public String getTypeName()
     254    {
     255        if (typeName  == null)
     256        {
     257            parseUntil("typename");
     258        }
     259        return typeName;
     260    }
     261   
     262    /**
     263     * @return the contents of 'direction' field
     264     */
     265    public String getDirection()
     266    {
     267        if (direction  == null)
     268        {
     269            parseUntil("direction");
     270        }
     271        return direction;
     272    }
     273
    248274
    249275    /**
     
    346372                nameLength = 2;
    347373                id = rawField.substring(nameLength+1).trim();
    348             }           
     374            }
     375            else if (rawField.startsWith("typename="))
     376            {
     377                nameLength = 8;
     378                typeName = rawField.substring(nameLength+1).trim();
     379            }
     380            else if (rawField.startsWith("direction="))
     381            {
     382                nameLength = 9;
     383                direction = rawField.substring(nameLength+1).trim();
     384               
     385                /*
     386                 * remove "" around the fields value by removing
     387                 * first and last character
     388                 */
     389                direction =
     390                    direction.substring(1, direction.length() - 1);
     391
     392            }
    349393            else /* we are not interedted in this particular field at all */
    350394            {
Note: See TracChangeset for help on using the changeset viewer.