Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Question according to http://wiki.eclipse.org/GMF_Constraints
Question according to http://wiki.eclipse.org/GMF_Constraints [message #661760] Sun, 27 March 2011 15:34 Go to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 697
Registered: November 2009
Senior Member
Hi all,

I did not find a better way to discuss this article. Maybe there is one existing. The artcle says:

Quote:
Java is usually the option when the expression logic represents excessive complexity or requires direct access to Ecore reflective API


In my opinion this is not 100% right. I can access the Ecore API by using this cast:

self.oclAsType(ecore::EObject)


I think this option should be documented somewher. What do others think?

Ralph
Re: Question according to http://wiki.eclipse.org/GMF_Constraints [message #661768 is a reply to message #661760] Sun, 27 March 2011 17:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26283
Registered: July 2009
Senior Member
Ralph,

I think the OCL folks have documented how to use it for constraints;
something that wasn't so easy before the EMF 2.6 release...

Given the documentation is in the wiki, you should feel free to
contribute to it.



ralph. wrote:
> Hi all,
>
> I did not find a better way to discuss this article. Maybe there is
> one existing. The artcle says:
>
> Quote:
>> Java is usually the option when the expression logic represents
>> excessive complexity or requires direct access to Ecore reflective API
>
>
> In my opinion this is not 100% right. I can access the Ecore API by
> using this cast:
>
> self.oclAsType(ecore::EObject)
>
> I think this option should be documented somewher. What do others think?
>
> Ralph
Previous Topic:GMF Model to XML
Next Topic:Creating EditPart + setting size no longer working
Goto Forum:
  


Current Time: Fri Dec 19 22:56:28 GMT 2014

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

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