Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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


Back to the top