[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: ocl constraint for allowing links only for elements in same container

Hi Michael,

I would create a "Target End Constraint" (under your Link Mapping)
in OCL like this:
self.parentContainer = oppositeEnd.parentContainer
This requires that your elements A and B have a reference to C.

Hope that helps!
Nicolai

-- 
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo