Extend OCL editorhttps://www.eclipse.org/forums/index.php/mv/msg/200747/640837/#msg_640837
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]]>Christian Saad2010-11-23T10:34:50-00:00Re: Extend OCL editorhttps://www.eclipse.org/forums/index.php/mv/msg/200747/640936/#msg_640936
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]]>Ed Willink2010-11-23T15:17:24-00:00Re: Extend OCL editorhttps://www.eclipse.org/forums/index.php/mv/msg/200747/641096/#msg_641096
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