[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Customizing initializers with more OCL

Hello Christophe,

1. Should I use the "LinkMapping" constraint principle, and try to use
OCL to query a second model? (Is this even possible with OCL)
If you are going to add creation constraints to the diagram link then this is a proper way (add new instance of LinkConstraints under creationConstraints containment feature in LinkMapping and use it to specify source/target end constraints.).

It should be not a problem to use other modules in OCL â corresponding elements should be referenced somehow from the original model and then you should be able to use it like: âself.referencedSecondmodelElement.isLinkCreationAllowedâ

-----------------
Alex Shatalin