XWT not working in exports [message #533704] |
Sat, 15 May 2010 15:24  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03509 seconds