Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Migrating to Delegates (Helios)
Migrating to Delegates (Helios) [message #545702] Thu, 08 July 2010 16:27 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Ed,

I am about to migrate my templates based OCL stuff to 'Delegates'.

I went through the documentation, and I must give you my compliments for
the very good implementation and the documentation of these features. I
am also glad the examples are for OCL :-)

Cheers Christophe
Re: Migrating to Delegates (Helios) [message #545707 is a reply to message #545702] Thu, 08 July 2010 17:12 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
On 08/07/2010 17:27, Christophe Bouhier wrote:
> Hi Ed,

Which Ed?
>
> I am about to migrate my templates based OCL stuff to 'Delegates'.
>
> I went through the documentation, and I must give you my compliments for
> the very good implementation and the documentation of these features. I
> am also glad the examples are for OCL :-)

If you've only seen the EMF documentation you might want to look at
http://wiki.eclipse.org/MDT/OCLinEcore

Regards

Ed Willink
Re: Migrating to Delegates (Helios) [message #546295 is a reply to message #545707] Mon, 12 July 2010 12:11 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Ed Willink wrote:
> On 08/07/2010 17:27, Christophe Bouhier wrote:
>> Hi Ed,
>
> Which Ed?

All active Ed's!

>>
>> I am about to migrate my templates based OCL stuff to 'Delegates'.
>>
>> I went through the documentation, and I must give you my compliments for
>> the very good implementation and the documentation of these features. I
>> am also glad the examples are for OCL :-)
>
> If you've only seen the EMF documentation you might want to look at
> http://wiki.eclipse.org/MDT/OCLinEcore
>
Thanks!


> Regards
>
> Ed Willink
>
>
Re: Migrating to Delegates - ValueConverter [message #546357 is a reply to message #546295] Mon, 12 July 2010 14:30 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi,
Small issue, but the ValueConverter interface is not declared public, so
an implementation of BasicSettingDelegate.Stateless will not be able to
import this interface.

It's used in the example here:

http://wiki.eclipse.org/EMF/New_and_Noteworthy/Helios#Defini ng_a_Setting_Delegate


(Actually the image showing the snapshot is not complete, so it's a
little bit of thinking what should go in the constructor).

I was also wondering if the packaged Delegates provided with ocl.ecore
could be used with defining my own. (They seem very similar in
implementation as the snippets in the articles on delegates).

Cheers Christophe
Re: Migrating to Delegates - ValueConverter [message #546445 is a reply to message #546357] Mon, 12 July 2010 19:11 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Christophe

ValueConverter has just the two LIST/VERBATIM instances handling the
multiple/non-multiple multiplicity options. Extension is not intended.

This is all likely to vanish once Ecore/UML differences are hidden
behind an OMG com,pliant facade with reflection, so I don't want to
expose more interface.

The EMF documentation was written when the EMF capability was
introduced. It's suggestions for OCL usage may be slightly misleading
compared to the actual OCL capability at M6. The OCL capability should
not need extension.

Regards

Ed Willink


On 12/07/2010 15:30, Christophe Bouhier wrote:
> Hi,
> Small issue, but the ValueConverter interface is not declared public, so
> an implementation of BasicSettingDelegate.Stateless will not be able to
> import this interface.
>
> It's used in the example here:
>
> http://wiki.eclipse.org/EMF/New_and_Noteworthy/Helios#Defini ng_a_Setting_Delegate
>
>
>
> (Actually the image showing the snapshot is not complete, so it's a
> little bit of thinking what should go in the constructor).
>
> I was also wondering if the packaged Delegates provided with ocl.ecore
> could be used with defining my own. (They seem very similar in
> implementation as the snippets in the articles on delegates).
>
> Cheers Christophe
Re: Migrating to Delegates - ValueConverter [message #546453 is a reply to message #546445] Mon, 12 July 2010 20:00 Go to previous messageGo to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Hi Ed,

Ed Willink wrote:
> The OCL capability should
> not need extension.

Just to be sure, so I can use the provided delegate implementation which
come with ocl right?

rgds Christophe
Re: Migrating to Delegates - ValueConverter [message #546491 is a reply to message #546453] Tue, 13 July 2010 06:42 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Using MDT/OCL Examples out of the box is the intention.

Feel free to provide feedback. It's new functionality that we are keen to improve.

Regards

Ed Willink
Re: Migrating to Delegates - ValueConverter [message #546522 is a reply to message #546491] Tue, 13 July 2010 09:17 Go to previous message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
Registered: July 2009
Senior Member
Edward Willink wrote:
> Using MDT/OCL Examples out of the box is the intention.
>
> Feel free to provide feedback. It's new functionality that we are keen
> to improve.
>
> Regards
>
> Ed Willink

Hi Edward,

Ok, I figured out that the EMF New and Noteworthy is an example, and the
MTD/OCL examples are the ones to use. Sofar so good. I have managed to
migrate constraints and derived features and it works like a charm!

Cheers christophe
Previous Topic:[Teneo] Extra Lazy Loading problems
Next Topic:Reflective Editor for Resource
Goto Forum:
  


Current Time: Tue Apr 23 12:25:11 GMT 2024

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

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

Back to the top