Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] Incorrect model file generated

I have a scenario where I am using Dynamic EMF to load external Ecore along with the static ecore so that at run time I have access to objects from both
the ecores. I have defined a GMF Object (AnyObject) in Static ecore which I used to represent all the objects from external ecore on canvas graphically. Now this AnyObject have self reference to it so that we can have multiple levels of connection like BaseObject->AnyObject->AnyObject->.........

When I load diagram with Eclipse 3.2 with GMF v1.0 plugins where there is multiple level of these AnyObject it generates model file like

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:PASample2="platform:/resource/com.csc.fs.pa.productdefintion/model/PA-Sample2.xsd" xmlns:_21500CSCTxLife1201ClientExtension2="http://pa.fss.csc.com/extensions/2.15.00_CSC_TxLife1201_Client_Extension2.xsd">
  <PASample2:DocumentRoot>
    <oLifE>
      <policyProduct>
        <oLifEExtension>
          <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension2:ABCType">
            <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension2:BCDType">
              <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension2:ChildExtensionType"/>
            </anyTypeLevel>
            <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension2:ABCType"/>
            <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension2:ABCType"/>
          </anyTypeLevel>
        </oLifEExtension>
      </policyProduct>
    </oLifE>
  </PASample2:DocumentRoot>
  <_21500CSCTxLife1201ClientExtension2:BCDType>
    <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension2:ChildExtensionType"/>
  </_21500CSCTxLife1201ClientExtension2:BCDType>
  <_21500CSCTxLife1201ClientExtension2:ABCType/>
  <_21500CSCTxLife1201ClientExtension2:ABCType/>
  <_21500CSCTxLife1201ClientExtension2:ChildExtensionType/>
</xmi:XMI>

But when I load same diagram with Eclipse 3.3 with GMF v2.0 plugins where there is multiple level of these AnyObject it generates wrong model file which editor itself is not able to load again like

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:PASample2="platform:/resource/com.csc.fs.pa.productdefintion/model/PA-Sample2.xsd" xmlns:_21500CSCTxLife1201ClientExtension="http://pa.fss.csc.com/extensions/2.15.00_CSC_TxLife1201_Client_Extension.xsd">
  <PASample2:DocumentRoot>
    <oLifE>
      <policyProduct>
        <oLifEExtension>
          <anyTypeLevel xsi:type="_21500CSCTxLife1201ClientExtension:ABCType">
            <anyTypeLevel href="">             <anyTypeLevel href="">            <anyTypeLevel href="">          </anyTypeLevel>
        </oLifEExtension>
      </policyProduct>
    </oLifE>
  </PASample2:DocumentRoot>
  <_21500CSCTxLife1201ClientExtension:ABCType>
    <anyTypeLevel href="">  </_21500CSCTxLife1201ClientExtension:ABCType>
  <_21500CSCTxLife1201ClientExtension:ABCType/>
  <_21500CSCTxLife1201ClientExtension:ABCType/>
  <_21500CSCTxLife1201ClientExtension:ABCType/>
</xmi:XMI>

If you see then it gives correct information till first AnyType level and for rest it just puts info like href="" which seems like it is putting some XPath reference but editor itself is not able to load this information correctly in diagram representation.

Could you pls help me identify as to where should I look for this or what could cause this problem.

--
Regards
Gaurav Mehta

Back to the top