Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [edt-dev] IR content: Dataitem reference not stored

Hi Bart
Indeed this is the case.  The parser does not keep this information today in all places so it is not transferring properly.  It is intended that the new model should keep this information.

Cheers

Tim



Bart Van Campenhout <bart_van_campenhout@xxxxxxxx>
Sent by: edt-dev-bounces@xxxxxxxxxxx

03/25/2011 04:35 AM

Please respond to
EGL Development Tools <edt-dev@xxxxxxxxxxx>

To
"edt-dev@xxxxxxxxxxx" <edt-dev@xxxxxxxxxxx>
cc
Subject
[edt-dev] IR content: Dataitem reference not stored





Hi,
 
While parsing an ir file, I noticed that the dataitem type is not stored.
Therefore it’s not possible to get that info.
 
Let me clarify with a small example.
Take this EGL Source:
package sample;
 
 
dataItem sampleItem string
end
 
 
record someRecd type BasicRecord
     
      itemName sampleItem;
     
end
 
 
From this EGLSource file 2 IR’s are generated:
 
<?xml version="1.0" encoding="iso-8859-1"?>
<DataItem ID="1"
                eClass="org.eclipse.edt.mof.egl.DataItem"
                name="sampleItem"
                hasCompileErrors="false"
                packageName="sample"
                baseType="egl:egl.lang.anystring" />
 
 
 
<?xml version="1.0" encoding="iso-8859-1"?>
<Record ID="1" eClass="org.eclipse.edt.mof.egl.Record" name="someRecd" hasCompileErrors="false" packageName="sample" isAbstract="false" >
                <annotations ID="2" eClass="egl:egl.core.basicrecord" />
                <annotations ID="3" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:62" off="i:51" line="i:8" />
                <superTypes href="">
                <fields
                               ID="4" eClass="org.eclipse.edt.mof.egl.Field" name="itemName" type="egl:egl.lang.anystring"
                               isNullable="false" isStatic="false" isAbstract="false" hasSetValuesBlock="false"
                               isImplicit="false" isSystemField="false" >
                               
                               <annotations ID="5" eClass="dynMof:org.eclipse.edt.mof.egl.Annotation:EGL_Location" len="i:20" off="i:87" line="i:10" />
                               <container IDREF="1"/>
                </fields>
</Record>
 
 
As you can see in the IR version of someRecd, no  reference to dataitem “sampleItem” is stored for the field named “itemName.
 
 
 
I believe it would be a good enhancement to keep track of this reference.
I’d highly appreciate any comment.
 
 
Regards,
Bart.
 
 
Bart Van Campenhout
Consultant
ASIST
Slachthuislaan 00.01 - 3000 Leuven (Belgium)
tel:
+32 (0)16 271077 - fax: +32 (0)11 825244
mobile: +32 (0)478 808503
e-mail:
bart_van_campenhout@xxxxxxxx - website: www.asist.be_______________________________________________
edt-dev mailing list
edt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/edt-dev


Back to the top