Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » change in the use of environmentView from juno to kepler
change in the use of environmentView from juno to kepler [message #1232770] Fri, 17 January 2014 17:41 Go to next message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
Hi Ed,

In the juno version, I had an extension of OCL with dedicated metaclasses (which are referencing object from another metamodel named externMM in the following) and I managed to do the code for an xtext editor.

I'm now moving to kepler (late I know Smile ).
I saw the environmentView changed and I'm not able to add the elements from the externMM in the environmenView. It requires to be a DomainElement but I can not modify the externMM.

Is there a simple way to do like 'environmentView.addElement(myEObject.getName(), myEObject) was doing ?


thanks in advance

julien
Re: change in the use of environmentView from juno to kepler [message #1232776 is a reply to message #1232770] Fri, 17 January 2014 18:07 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

DomainXXXX provides a very thin layer below XXXX and XXXImpl that is
intended to allow non-EObject modeling paradigms to exploit OCL.

If you cannot add the DomainXXXX interfaces into your propretary MM then
today you will have to introduce a layer of delegating DomainXXXX.

A quick experiment suggersts that there is no real reason to enforce
DomainElement rather than Object as EnvironmentView content.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=426015 raised.

Regards

Ed Willink

On 17/01/2014 17:41, Julien DeAntoni wrote:
> Hi Ed,
>
> In the juno version, I had an extension of OCL with dedicated
> metaclasses (which are referencing object from another metamodel named
> externMM in the following) and I managed to do the code for an xtext
> editor.
>
> I'm now moving to kepler (late I know :) ).
> I saw the environmentView changed and I'm not able to add the elements
> from the externMM in the environmenView. It requires to be a
> DomainElement but I can not modify the externMM.
> Is there a simple way to do like
> 'environmentView.addElement(myEObject.getName(), myEObject) was doing ?
>
> thanks in advance
>
> julien
Re: change in the use of environmentView from juno to kepler [message #1232816 is a reply to message #1232776] Fri, 17 January 2014 20:49 Go to previous messageGo to next message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
ok, thanks Ed.

I made a delegation but now the proxy to the object (the xtext link) is not resolved. I will investigate.

thanks !

julien
Re: change in the use of environmentView from juno to kepler [message #1232831 is a reply to message #1232816] Fri, 17 January 2014 21:30 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

http://www.eclipse.org/modeling/download.php?file=/modeling/mdt/ocl/downloads/drops/4.2.0/N201401171411/mdt-ocl-Update-N201401171411.zip

should allow you to use Object.

Regards

Ed

On 17/01/2014 20:49, Julien DeAntoni wrote:
> ok, thanks Ed.
>
> I made a delegation but now the proxy to the object (the xtext link)
> is not resolved. I will investigate.
>
> thanks !
>
> julien
Re: change in the use of environmentView from juno to kepler [message #1233239 is a reply to message #1232831] Sun, 19 January 2014 02:26 Go to previous message
Julien Deantoni is currently offline Julien DeantoniFriend
Messages: 45
Registered: July 2009
Member
After some renaming it really works like a charm now Smile

thanks a lot for the update site !

best regards

julien
Previous Topic:Query over association instead of the classes (classifiers) with OCL
Next Topic:Xtext validation using Complete OCL
Goto Forum:
  


Current Time: Thu Apr 25 15:18:20 GMT 2024

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

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

Back to the top