Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Cannot access OCL functions
Cannot access OCL functions [message #1706146] Mon, 24 August 2015 07:53 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 662
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

I'm trying OCLinEcore on a model and have a derived feature (allTasks)
I would like to be the union of two other features (tasks and
taskRefs). Here's the model:

class GameDef
{
property tasks : TaskDef[*] { ordered composes };
property taskRefs : TaskDef[*] { ordered };
property allTasks : TaskDef[*] { ordered derived readonly transient
volatile };
}


When I type in the expression, I get suggestions for features and
types, but I don't get suggestions for OCL functions like select,
forAll, union etc. It does however accept them, but since I'm not
fluent in OCL I would like completion suggestions (and so would my
students).

Hallvard
--
Hallvard Trætteberg (hal@xxxxxxxx.no)
Associate Professor, IS group, Dept. of Computer and Information
Science at the
Norwegian Univ. of Science and Technology
Re: Cannot access OCL functions [message #1706174 is a reply to message #1706146] Mon, 24 August 2015 12:27 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6033
Registered: July 2009
Senior Member
Hi

I'd like that too. Sadly quite a bit of the UI is in a 90% finished, 90%
still to do state, hoping that some enthusiast might be motivated to do
some polishing.

For the particular case of completion assists, we are moving to a new
level of auto-generation of name resolution candidates from OCL
specification models. This could result in a rework that fixes the
omissions.

Regards

Ed Willink

On 24/08/2015 08:53, Hallvard Trætteberg wrote:
> Hi,
>
> I'm trying OCLinEcore on a model and have a derived feature (allTasks)
> I would like to be the union of two other features (tasks and
> taskRefs). Here's the model:
>
> class GameDef
> {
> property tasks : TaskDef[*] { ordered composes };
> property taskRefs : TaskDef[*] { ordered };
> property allTasks : TaskDef[*] { ordered derived readonly
> transient volatile };
> }
>
>
> When I type in the expression, I get suggestions for features and
> types, but I don't get suggestions for OCL functions like select,
> forAll, union etc. It does however accept them, but since I'm not
> fluent in OCL I would like completion suggestions (and so would my
> students).
>
> Hallvard
Previous Topic:How to query UML models with OCL?
Next Topic:template param impl cannot be cast to pivot class
Goto Forum:
  


Current Time: Tue Sep 18 21:21:25 GMT 2018

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

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

Back to the top