Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Nested XWT
Nested XWT [message #572459] Thu, 01 April 2010 03:21 Go to next message
Sebastian is currently offline Sebastian
Messages: 61
Registered: March 2010
Member
Hi,

I tried using the test in org.eclipse.e4.xwt.tests.view
for nested XWTs, but all the time even when using the namespace like
<j:CompanyView xmlns:j="clr-namespace:my.app.sample.views">
<j:CompanyView.layout>
<GridLayout numColumns="2"/>
</j:CompanyView.layout>
</j:CompanyView>

XWT says it cannot load the XWT and creates an exception:
org.eclipse.e4.xwt.XWTException: Cannot load my.app.sample.views.CompanyView
at org.eclipse.e4.xwt.internal.core.MetaclassManager.getMetacla ss(MetaclassManager.java:134)
at org.eclipse.e4.xwt.internal.core.MetaclassService.getMetacla ss(MetaclassService.java:43)
at org.eclipse.e4.xwt.internal.core.Core.getMetaclass(Core.java :544)
at org.eclipse.e4.xwt.XWTLoader.getMetaclass(XWTLoader.java:893 )
at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(Resource Loader.java:429)
at org.eclipse.e4.xwt.javabean.ResourceLoader.createCLRElement( ResourceLoader.java:363)
at org.eclipse.e4.xwt.internal.core.Core.createCLRElement(Core. java:606)
at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:646)
at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:633)
at org.eclipse.e4.xwt.XWTLoader.loadWithOptions(XWTLoader.java: 835)
at org.eclipse.e4.xwt.XWTLoader.load(XWTLoader.java:604)
at org.eclipse.e4.xwt.XWT.load(XWT.java:399)


Any clue?
Re: Nested XWT [message #572585 is a reply to message #572459] Thu, 01 April 2010 15:51 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
I guess it is a problem of class loader. Is it a Java application or eclipse
bundle ?

Regards
Yves YANG
"Sebastian" <laluz@gateway23.de> wrote in message
news:hp1hi2$dm6$1@build.eclipse.org...
> Hi,
>
> I tried using the test in org.eclipse.e4.xwt.tests.view
> for nested XWTs, but all the time even when using the namespace like
> <j:CompanyView xmlns:j="clr-namespace:my.app.sample.views">
> <j:CompanyView.layout>
> <GridLayout numColumns="2"/>
> </j:CompanyView.layout>
> </j:CompanyView>
>
> XWT says it cannot load the XWT and creates an exception:
> org.eclipse.e4.xwt.XWTException: Cannot load
> my.app.sample.views.CompanyView
> at org.eclipse.e4.xwt.internal.core.MetaclassManager.getMetacla
> ss(MetaclassManager.java:134)
> at org.eclipse.e4.xwt.internal.core.MetaclassService.getMetacla
> ss(MetaclassService.java:43)
> at org.eclipse.e4.xwt.internal.core.Core.getMetaclass(Core.java :544)
> at org.eclipse.e4.xwt.XWTLoader.getMetaclass(XWTLoader.java:893 )
> at org.eclipse.e4.xwt.javabean.ResourceLoader.doCreate(Resource
> Loader.java:429)
> at org.eclipse.e4.xwt.javabean.ResourceLoader.createCLRElement(
> ResourceLoader.java:363)
> at org.eclipse.e4.xwt.internal.core.Core.createCLRElement(Core. java:606)
> at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:646)
> at org.eclipse.e4.xwt.internal.core.Core.load(Core.java:633)
> at org.eclipse.e4.xwt.XWTLoader.loadWithOptions(XWTLoader.java: 835)
> at org.eclipse.e4.xwt.XWTLoader.load(XWTLoader.java:604)
> at org.eclipse.e4.xwt.XWT.load(XWT.java:399)
>
>
> Any clue?
Previous Topic:e4 app based on Contact demo has problem with IEclipseContext
Next Topic:XWT. May be not accurate handling of element properties
Goto Forum:
  


Current Time: Fri Aug 01 20:39:56 EDT 2014

Powered by FUDForum. Page generated in 0.01475 seconds