Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Problems with hierarchical/embedded model packages(Problems with hierarchical/embedded model packages)
Problems with hierarchical/embedded model packages [message #1722541] Fri, 05 February 2016 14:23 Go to next message
Zoltan Matyas is currently offline Zoltan MatyasFriend
Messages: 2
Registered: February 2016
Junior Member
Hello,

I found the following issue when playing around with OCL:

My model is the following:

package1
package2
class
attribute

CompleteOCL for the model:

import 'model.ecore'

package package1::package2

context class
inv SomeCheck: self.attribute = 'someValue'

endpackage

When I tried to check the model programatically with the well known Diagnostician I always got parsing errors for the ocl file saying that it cannot recognise package2 and class and its attributes.

When I moved the class to package1 the OCL check was working as supposed without parsing errors.

Is this a feature limitation or a bug?
Thanks, Zoltan
Re: Problems with hierarchical/embedded model packages [message #1722551 is a reply to message #1722541] Fri, 05 February 2016 16:19 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Sounds like an old bug. Try a more recent version.
https://wiki.eclipse.org/OCL/ForumNetiquette

Regards

Ed Willink


On 05/02/2016 16:13, Zoltan Matyas wrote:
> Hello,
>
> I found the following issue when playing around with OCL:
>
> My model is the following:
>
> package1
> package2
> class
> attribute
>
> CompleteOCL for the model:
>
> import 'model.ecore'
>
> package package1::package2
>
> context class
> inv SomeCheck: self.attribute = 'someValue'
>
> endpackage
>
> When I tried to check the model programatically with the well known
> Diagnostician I always got parsing errors for the ocl file saying that
> it cannot recognise package2 and class and its attributes.
> When I moved the class to package1 the OCL check was working as
> supposed without parsing errors.
>
> Is this a feature limitation or a bug?
> Thanks, Zoltan
Re: Problems with hierarchical/embedded model packages [message #1723158 is a reply to message #1722551] Fri, 12 February 2016 09:11 Go to previous messageGo to next message
Zoltan Matyas is currently offline Zoltan MatyasFriend
Messages: 2
Registered: February 2016
Junior Member
Hello,

I use the latest eclipse (4.5.1), OCL SDK 5.1 and OCL Ecore 3.5. If I try to update my eclipse it does not find any.

BR, Zoltan
OCL Mars updates (was Re: Problems with hierarchical/embedded model packages) [message #1723165 is a reply to message #1723158] Fri, 12 February 2016 09:46 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The Mars.1 6.0.1 release is available from

http://download.eclipse.org/releases/mars

However I understand that the inadequacy of Eclipse Update is a known
issue for which I can only apologize.

6.0.2 will be available in a couple of weeks; no functional changes are
anticipated from 6.0.2RC3.

The OCL downloads page

https://www.eclipse.org/modeling/mdt/downloads/?project=ocl

is updated automatically and so you can find 6.0.1 and 6.0.2RC3 (and
6.1.0M5) there reliably.

The OCL updates sites require a little manual registration; I've just
fixed a couple of bugs. You should now be able to update to

6.0.1 from http://download.eclipse.org/modeling/mdt/ocl/updates/releases

6.0.2RC3 from
http://download.eclipse.org/modeling/mdt/ocl/updates/milestones/6.0.2

The changes, which are very relevant to UML users, are listed on

https://wiki.eclipse.org/OCL/New_and_Noteworthy/Mars

Regards

Ed Willink




On 12/02/2016 09:11, Zoltan Matyas wrote:
> Hello,
>
> I use the latest eclipse (4.5.1), OCL SDK 5.1 and OCL Ecore 3.5. If I
> try to update my eclipse it does not find any.
>
> BR, Zoltan
Previous Topic:Parsing error in a UML::Constraint
Next Topic:Non documented dependency for OCLinEcore
Goto Forum:
  


Current Time: Fri Apr 26 19:41:51 GMT 2024

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

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

Back to the top