Fragment Project as a resource project [message #522580] |
Tue, 23 March 2010 09:00 |
czetsuya Messages: 9 Registered: March 2010 Location: Philippines |
Junior Member |
|
|
Hi,
I know fragment is used for language and platform specific codes. I just want to ask if I can also used it to stored my resources, like images, text files etc.
For example, I have a plugin that used an image, that image will be stored in the fragment say in the res directory. Unfortunately, when I invoked the code:
Activator.getImageDescriptor("res/alt_about.gif").createImage();
//it throws java.lang.NullPointerException
I thought the fragment would share the host plugin's Activator but it seems it can't find the res folder.
BTW, I've also included the res folder in the fragment's Build Configuration
Thanks,
czetsuya
http://czetsuya-tech.blogspot.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.03267 seconds