Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » [xwt] Dynamic EMF data context not recognized
[xwt] Dynamic EMF data context not recognized [message #503470] Mon, 14 December 2009 06:25 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
I have set the data context on a widget.
The data context is a dynamic emf model.
When loading the xwt form, I will get this error:

Caused by: java.lang.IllegalArgumentException: Could not find property with name connectionid in class class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
at org.eclipse.core.internal.databinding.beans.BeanPropertyHelp er.getPropertyDescriptor(BeanPropertyHelper.java:177)
at org.eclipse.core.databinding.beans.PojoProperties.value(Pojo Properties.java:119)
at org.eclipse.core.databinding.beans.PojoProperties.value(Pojo Properties.java:89)
at org.eclipse.e4.xwt.dataproviders.ObjectDataProvider.createVa lueProperty(ObjectDataProvider.java:352)
at org.eclipse.e4.xwt.internal.core.ScopeManager.doCreateValueP roperty(ScopeManager.java:409)
at org.eclipse.e4.xwt.internal.core.ScopeManager.createValuePro perty(ScopeManager.java:392)
at org.eclipse.e4.xwt.jface.XWTObservableWrapper.checkDelegated (XWTObservableWrapper.java:202)

It seems that the correct data provider is not recognized. XWT is using the object data provider instead of the EMF data provider.
The ..xwt.emf plugin is available in the runtime and is added to the required-bundles header in my plugin.
Re: [xwt] Dynamic EMF data context not recognized [message #503824 is a reply to message #503470] Tue, 15 December 2009 17:04 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
You need to call EMFBinding.initialze() before use XWT It register the EMF
data provider..

Best regards
Yves YANG
"Erdal Karaca" <erdal.karaca.de@googlemail.com> wrote in message
news:hg57bd$7f6$1@build.eclipse.org...
>I have set the data context on a widget.
> The data context is a dynamic emf model.
> When loading the xwt form, I will get this error:
>
> Caused by: java.lang.IllegalArgumentException: Could not find property
> with name connectionid in class class
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl
> at org.eclipse.core.internal.databinding.beans.BeanPropertyHelp
> er.getPropertyDescriptor(BeanPropertyHelper.java:177)
> at org.eclipse.core.databinding.beans.PojoProperties.value(Pojo
> Properties.java:119)
> at org.eclipse.core.databinding.beans.PojoProperties.value(Pojo
> Properties.java:89)
> at org.eclipse.e4.xwt.dataproviders.ObjectDataProvider.createVa
> lueProperty(ObjectDataProvider.java:352)
> at org.eclipse.e4.xwt.internal.core.ScopeManager.doCreateValueP
> roperty(ScopeManager.java:409)
> at org.eclipse.e4.xwt.internal.core.ScopeManager.createValuePro
> perty(ScopeManager.java:392)
> at org.eclipse.e4.xwt.jface.XWTObservableWrapper.checkDelegated
> (XWTObservableWrapper.java:202)
>
> It seems that the correct data provider is not recognized. XWT is using
> the object data provider instead of the EMF data provider.
> The ..xwt.emf plugin is available in the runtime and is added to the
> required-bundles header in my plugin.
Previous Topic:XWT + TableViewer + Master/Details
Next Topic:[xwt] Dynamic EMF data context not recognized
Goto Forum:
  


Current Time: Tue Jun 02 15:22:35 GMT 2020

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

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

Back to the top