Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Edapt] Factory problems ...
[Edapt] Factory problems ... [message #1028585] Thu, 28 March 2013 13:06 Go to next message
ben ben is currently offline ben benFriend
Messages: 28
Registered: June 2012
Junior Member
Hi,

I have a problem trying to migrate my model using Edapt.

It seems that Edapt doesn't use package/factory classes generated by EMF (specific for my model).

It uses generic EPackageImpl/EFactoryImpl instead.

The problem is : using theses factories, it fails (IllegalArgumentException) to create a type that has a wrapped Interface as super type (see picture).

How can I tell Edapt to use generated factories ?

Thanks !

http://pyts01.free.fr/wrapper.png

[Updated on: Thu, 28 March 2013 13:33]

Report message to a moderator

Re: [Edapt] Factory problems ... [message #1029166 is a reply to message #1028585] Fri, 29 March 2013 08:44 Go to previous messageGo to next message
ben ben is currently offline ben benFriend
Messages: 28
Registered: June 2012
Junior Member
Going further in think I beginning to understand how Edapt works.

As it has to read a model which is probably not compatible with loaded metamodel version, it must create "generic" object, so it uses DynamicEObject.

The problem is : I get a ClassCastException in
public void eSet(int featureID, Object newValue)
method becauses EMF tries to cast DynamicEObject in my model object ...
Re: [Edapt] Factory problems ... [message #1059608 is a reply to message #1029166] Mon, 20 May 2013 19:27 Go to previous messageGo to next message
Jim Foscue is currently offline Jim FoscueFriend
Messages: 15
Registered: June 2012
Junior Member
Did you ever get an answer to this problem?

We are having the same issue.

Thanks in advance,

Jim
Re: [Edapt] Factory problems ... [message #1059805 is a reply to message #1029166] Tue, 21 May 2013 16:35 Go to previous messageGo to next message
Jim Foscue is currently offline Jim FoscueFriend
Messages: 15
Registered: June 2012
Junior Member
Do you ever find a solution to this problem?

I'm having the same issue.

Thanks
Re: [Edapt] Factory problems ... [message #1059940 is a reply to message #1029166] Wed, 22 May 2013 09:00 Go to previous message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
Hi,

I just noticed your original request because another question was added,
sorry for the delay.
To my best knowledge the scenario you describe is not supported by Edapt
and would require changes in the Edapt code. Please open a bugzilla for
this.
If you are not able to make a contribution but you would like the
problem solved very soon, I could get you in contact with a developer
able to make such contribution.

Cheers,
Maximilian


Am 29.03.2013 09:44, schrieb ben ben:
> Going further in think I beginning to understand how Edapt works.
>
> As it has to read a model which is probably not compatible with loaded
> metamodel version, it must create "generic" object, so it uses
> DynamicEObject.
>
> The problem is : I get a ClassCastException in public void eSet(int
> featureID, Object newValue)
> method becauses EMF tries to cast DynamicEObject in my model object ...


--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Previous Topic:How to resolve this error?
Next Topic:Customize EMF Enums
Goto Forum:
  


Current Time: Thu Mar 28 22:24:13 GMT 2024

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

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

Back to the top