Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT not working in exports(xwt product exports not working)
XWT not working in exports [message #533704] Sat, 15 May 2010 15:24 Go to next message
Parvez Ahmad Hakim is currently offline Parvez Ahmad Hakim
Messages: 31
Registered: May 2010
Member
I have below code
label = (Label) XWT.load(parent, XWTLoader.class
.getResource("org/cord/client/dms/mainapp/ui/detailsViewer/ " + labelName ));


Now what happens, the getResource works fine in development environment, but when i try to export the project as product, getResource returns null

Can some body offer help
I too tired modifying build properties

Parvez Ahmad Hakim
Srinagar
Re: XWT not working in exports [message #534172 is a reply to message #533704] Tue, 18 May 2010 05:41 Go to previous message
Yves YANG is currently offline Yves YANG
Messages: 687
Registered: July 2009
Senior Member
It is a class loader issue. You should use your class instead of XWT to get
the resource: XWTLoader.class.getResource().

Please find relative tropics about getResource() in Java.

Best regards
Yves YANG
"Parvez Ahmad Hakim" <parvez12@gmail.com> wrote in message
news:hsmse1$jp0$1@build.eclipse.org...
>I have below code
> label = (Label) XWT.load(parent, XWTLoader.class
> getResource("org/cord/client/dms/mainapp/ui/detailsViewer/ " +
> labelName ));
>
>
> Now what happens, the getResource works fine in development environment,
> but when i try to export the project as product, getResource returns null
>
> Can some body offer help
> I too tired modifying build properties
>
> Parvez Ahmad Hakim
> Srinagar
Previous Topic:XWT + DataBinding + TableViewer Issue
Next Topic:Menu Contributions
Goto Forum:
  


Current Time: Mon Jul 28 08:32:54 EDT 2014

Powered by FUDForum. Page generated in 0.01853 seconds