|definitions in OCL? [message #559978]
||Mon, 20 September 2010 15:23
| Liu Qiang
Registered: September 2010
I used OCLinEcore, i think it's cool, however, i encountered the following questions on my own:
In the OCLinEcore editor, i tried to define some useful definitions that can be reused in later developments. In standard OCL syntax, we can use the keyword: def. I tried the keyword defintion, the editor highlights it as a key word, but it's not working as in standard OCL.
2. Operation Parameters
I defined the following operation:
operation test(c : uml_0::Class, ) : Boolean[?]
the editor said it cannot resolve the attribute ownedOperation for NamedElement c. It seems to me the editor treats all parameters as of type NamedElement.
ps: i did remember to import the uml metamodel by this:
import uml_0 : '/plugin/org.eclipse.uml2.uml/model/UML.ecore#/';
can you give me some suggestions about these problems, thanks a lot!
[Updated on: Mon, 20 September 2010 15:26]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02407 seconds