|definitions in OCL? [message #559978]
||Mon, 20 September 2010 11: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 11:26]
Report message to a moderator
|Re: definitions in OCL? [message #569999 is a reply to message #560167]
||Tue, 21 September 2010 12:22
| Ed Willink
Registered: July 2009
I think the message you refer to may have got lost during the recent
news server downtime; so please rephrase.
I'm hoping to have 3.1.0 out in time for Eclipse Summit Europe; late
On 21/09/2010 13:24, Simon harrer wrote:
> for #2: this is a bug which is already fixed, however, it will only be
> available in the upcoming release 3.1 ... which I do not know when this
> will happen. Bug URL: https://bugs.eclipse.org/bugs/show_bug.cgi?id=325058
> for #1: as fas as I know, this is not possible in this editor. But I can
> be mistaken. I only work with this tool for 2 months.
Powered by FUDForum
. Page generated in 0.08247 seconds