Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Changing an Class Name in the Model
Changing an Class Name in the Model [message #35994] Thu, 31 August 2006 20:19 Go to next message
Eclipse UserFriend
Originally posted by: leonardo.coelho.siliconstrategy.com.br

I´m sorry, I´m still a newbie and I´m facing some problems I think I
can´t correct by myself yet...

I´ve just changed a name of a class in my model. I´ve already recreated
all the required stuff but there is a strange behavior...

I´ve created a link constraint in a Link Mapping. It was:

(target end constraint)

self <> oppositeEnd and self.previous.oclIsUndefined()

But now it isn´t working anymore... And it launches a error when I try
to generate my gmfgen:

Diagnosis of
org.eclipse.gmf.codegen.gmfgen.impl.GenEditorGeneratorImpl@20e646{platform:/resource/Venati/model/wfVenati.gmfgen#/}
No evaluation context available for value-spec or constraint
'org.eclipse.gmf.codegen.gmfgen.impl.GenConstraintImpl@17e7dd9 {platform:/resource/Venati/model/wfVenati.gmfgen#//@diagram/ @links.0/@creationConstraints/@targetEnd}'


Is it a bug? Or do i have to do anything else to make it works?

ps: I´ve found a (temporary) workaround using a Constraint in the Link
Mapping. But i´d like to use a Link Constraint... it would be better...

Regards,



--

=============================/============================== ====
Leonardo Coelho
=============================/============================== =====
Re: Changing an Class Name in the Model [message #37025 is a reply to message #35994] Fri, 01 September 2006 15:57 Go to previous message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi Leonardo,

I believe this problem is also caused by the genmodel which is not in sync
with your ecore model.
Note that the diagnostic is reported for the gmfgen model only while the
gmfmap is OK.
The context for targetEnd constraint is derived from the GenLink's LinkFacet
containing
your link constraints, in particular from the target feature type.
Most likely, there is no proper GenClass(EClass) found here.

/Radek

"Leonardo Coelho" <leonardo.coelho@siliconstrategy.com.br> wrote in message
news:ed7g4d$bi1$1@utils.eclipse.org...
> I
Previous Topic:How do i create a dummy element
Next Topic:Labels: Multiline and vertical?
Goto Forum:
  


Current Time: Fri Oct 18 02:48:24 GMT 2024

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

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

Back to the top