Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » No EObjectDescription could be found in Scope
No EObjectDescription could be found in Scope [message #1401742] Wed, 16 July 2014 03:15 Go to next message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi,
when I try to serialize my model!


<?xml version="1.0" encoding="ASCII"?>
<MMC:Packages xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:MMC="http://IRIT.HMS.POC/MMC" xmi:id="_myzVMARXEeSut-vX3pa-bg" name="racine">
  <gathersM name="MMb">
    <dispose name="BB1" sourceRel="//@gathersC.0/@gathersC.0/@gathersR"/>
  </gathersM>
  <gathersM name="MMa">
    <dispose name="AA1" targetRel="//@gathersC.0/@gathersC.0/@gathersR"/>
  </gathersM>
  <gathersC name="M2C">
    <gathersC name="C0">
      <gathersR xsi:type="MMC:Similarity" sourceElt="//@gathersM.0/@dispose.0" targetElt="//@gathersM.1/@dispose.0"/>
    </gathersC>
  </gathersC>
</MMC:Packages>



I got the a blocking exception that i couldnt solve.
java.lang.RuntimeException: No EObjectDescription could be found in Scope RefElement.sourceRel for Packages'racine'.gathersC[0]->CorrespondenceModel'M2C'.gathersC[0]->Correspondence'C0'.gathersR->Similarity
Semantic Object: Packages'racine'.gathersM[0]->RefModel'MMb'.dispose[0]->RefElement'BB1'



Regarding my grammar everything seems correct in my opinion
Packages_Impl returns Packages:
	{Packages}
	name=EString

		( gathersM+=RefModel ( "," gathersM+=RefModel)* )
		( gathersC+=CorrespondenceModel ( "," gathersC+=CorrespondenceModel)*)
	;

RefModel returns RefModel:
	'import'
        ('model' name=EString)?
	 '{' dispose+=RefElement ( "," dispose+=RefElement)* '}' 
	;

CorrespondenceModel returns CorrespondenceModel:
	'create'
	name=String2
	'define'  gathersC+=Correspondence ( "," gathersC+=Correspondence)*  ';'

	;
RefElement returns RefElement:
	{RefElement}
	'RefElement'
	name=EString
		('sourceRel' '(' sourceRel+=[Relationship|EString] ( "," sourceRel+=[Relationship|EString])* ')' )?
   		('targetRel' '(' targetRel+=[Relationship|EString] ( "," targetRel+=[Relationship|EString])* ')' )?




Any ideas plz
Re: No EObjectDescription could be found in Scope [message #1402463 is a reply to message #1401742] Thu, 17 July 2014 03:21 Go to previous message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Problem solved. I add a name attribute in the metamodel to the element used in the crossRef(Relationship in my case)
Previous Topic:Cross reference and scoping
Next Topic:Replacement for TypeReferences.isInstanceof()
Goto Forum:
  


Current Time: Fri Apr 19 02:56:27 GMT 2024

Powered by FUDForum. Page generated in 0.02639 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top