Skip to main content


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 19:24 Go to next message
Parvez Ahmad Ahmad is currently offline Parvez Ahmad AhmadFriend
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 09:41 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
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: Tue Apr 16 10:37:11 GMT 2024

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

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

Back to the top