definitions in OCL? [message #559978] |
Mon, 20 September 2010 11:23  |
Eclipse User |
|
|
|
Dear Edward:
I used OCLinEcore, i think it's cool, however, i encountered the following questions on my own:
1. Definitions
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[1], ) : Boolean[?]
{
body: c.ownedOperation->isEmpty();
}
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!
Sincerely,
LQ
[Updated on: Mon, 20 September 2010 11:26] by Moderator
|
|
|
|
Re: definitions in OCL? [message #569999 is a reply to message #560167] |
Tue, 21 September 2010 12:22  |
Eclipse User |
|
|
|
Hi Simon
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
October.
Regards
Ed Willink
On 21/09/2010 13:24, Simon harrer wrote:
> Hi,
>
> 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.
> cheers,
> simon
|
|
|
Powered by
FUDForum. Page generated in 0.05699 seconds