Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » definitions in OCL?
definitions in OCL? [message #559978] Mon, 20 September 2010 15:23 Go to next message
Liu Qiang is currently offline Liu Qiang
Messages: 2
Registered: September 2010
Junior Member
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 15:26]

Report message to a moderator

Re: definitions in OCL? [message #560167 is a reply to message #559978] Tue, 21 September 2010 12:24 Go to previous messageGo to next message
Simon harrer is currently offline Simon harrer
Messages: 25
Registered: August 2010
Junior Member
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
Re: definitions in OCL? [message #569999 is a reply to message #560167] Tue, 21 September 2010 16:22 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4086
Registered: July 2009
Senior Member
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
Previous Topic:count words or spaces in a string
Next Topic:[Announce] MDT/OCL 3.1.0 M2 is now available
Goto Forum:
  


Current Time: Mon Oct 20 18:14:53 GMT 2014

Powered by FUDForum. Page generated in 0.03677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software