Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Extend OCL editor
Extend OCL editor [message #640837] Tue, 23 November 2010 10:34 Go to next message
Christian Saad is currently offline Christian SaadFriend
Messages: 39
Registered: July 2009
Member
Hi,

I'm using EcoreEnvironment.addHelperOperation() to dynamically add additional operations to EClasses before constraints are parsed.
Obviously, the (Complete) OCL editor doesn't know about this and yields errors due to unrecognized methods. Therefore, I'm looking for a way to provide the editor with basically the same information as the EcoreEnvironment so that it can recognize and display (e.g. in content assist) additional operations for EClasses.
Since which methods are available depends on the availability of other constraints at runtime, they have to be derived dynamically, i.e. I cannot just extend the grammar & regenerate the editor.

Any help on this issue would be highly appreciated Smile

Regards,
Chris
Re: Extend OCL editor [message #640936 is a reply to message #640837] Tue, 23 November 2010 15:17 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Christian

The MDT/OCL 3.0.0 Examples editors have many limitations that I'm hoping
will be addressed in the Indogo release.

Complete OCL is particularly challenging since the OCL specification is
significantly incomplete and unimplementable in this area.

I could direct you as to how to improve the current code but it would
take both of us significant time and would not make any useful progress
towards the Indigo implementaton.

I'm afraid that you just need to be patient and wait for my
implementation prototyping resolutions of the OMG specification is
available.

Regards

Ed Willink

On 23/11/2010 10:34, C. Saad wrote:
> Hi,
>
> I'm using EcoreEnvironment.addHelperOperation() to dynamically add
> additional operations to EClasses before constraints are parsed.
> Obviously, the (Complete) OCL editor doesn't know about this and
> yields errors due to unrecognized methods. Therefore, I'm looking for
> a way to provide the editor with basically the same information as the
> EcoreEnvironment so that it can recognize and display (e.g. in content
> assist) additional operations for EClasses.
> Since which methods are available depends on the availability of other
> constraints at runtime, they have to be derived dynamically, i.e. I
> cannot just extend the grammar & regenerate the editor.
>
> Any help on this issue would be highly appreciated :)
>
> Regards,
> Chris
Re: Extend OCL editor [message #641096 is a reply to message #640936] Wed, 24 November 2010 09:25 Go to previous message
Christian Saad is currently offline Christian SaadFriend
Messages: 39
Registered: July 2009
Member
Hi Ed,

thanks for the quick answer. I feared that it might not be that simple. As a workaround, I'm currently experimenting with the QVT editor and helper queries. I'm looking forward to the extended editor in Indigo Smile

Regards,
Chris
Previous Topic:derive Expression with stereotypes and tagged values
Next Topic:Question to OCL-expression used in EMF Query
Goto Forum:
  


Current Time: Wed Apr 24 22:48:54 GMT 2024

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

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

Back to the top