[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: GMF mapping Audit Rules
|
- From: aachila@xxxxxxxxxxx (Achilleas )
- Date: Wed, 4 Feb 2009 15:57:15 +0000 (UTC)
- Newsgroups: eclipse.modeling.gmf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi Christian,
You are always a step ahead with your answers:))..Since I tried your
second suggestion and my next question was going to be: "Why the problem
marker does not display the message assigned in the corresponding Audit
Rule?" I rather gives a custom message that denotes the problem.
Your clarifications are very helpful and give me an insight when I should
use each constraint to fit my needs.
I have another question for you though:), if you please could provide me
with an answer!
Lets assume that I have two metamodels that are defined as follows:
Metamodel 1:
Root1(aggregates classes1)
Class1(includes value1)
Value1
Metamodel 2:
Root2(aggregates classes2)
Class2(includes value2)
Value2
Is it possible to load into the gmfmap model of Metamodel 1 the resource
(i.e. ecore,gmfmap) that points to Metamodel 2 so that I can check if
there two instances with equal values (value1,value2)???--- in this case I
require them to be equal!
Can it be done in a single audit rule similar to the one below (that you
originally provided)?
context Class1
inv:
Class2.allInstances()->forAll(c2 | self.value1 <> c2.value2)
Thanks,
Achilleas