-
Website
http://blog.garethj.com/ -
Original page
http://blog.garethj.com/2008/03/11/swt-browser-widgets-and-local-plugin-files/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Popular Threads
-
Wireless on a Dell Mini 10v in Ubuntu 9.10
1 week ago · 3 comments
-
Indicator applet API changes in Ubuntu 9.10
2 weeks ago · 5 comments
-
Wireless on a Dell Mini 10v in Ubuntu 9.10
The key was in the following post:
http://dev.eclipse.org/newslists/news.eclipse.p...
This meant I had to read in the initial HTML file and replace a marker with the actual base url within the plugin (which I had retrieved using the method above) and all went swimmingly! Thanks for posting this and giving me a clue in the first place!
I was close but one extra step was needed. The feature that held my HTML needed to be unpacked (tick the box in feature.xml to say it should be unpacked when installed) - then the base tag worked.
Will be useful info for anyone else that has the same issue (and me if I need to do it) so thanks for posting up the answer.
I have a plugin in which the html files are bundled. I followed your steps and could open the html file through plugin jar. But there are some images embedded in those html files which are not showing up. I couldnt get the concept of packing and unpacking which you have told in your previous comment. Please suggest me how to get images in the html file.
Thanks and Regards,
Rupa
Unfortunately I've not done this myself but it appears from Chris' comments above that he did. Sounds like you need to tick the option that unpacks your plugin when installed (in feature.xml). I assume this means that it unzip the installed JAR file rather than leaving it in the eclipse directory as-is. Good luck!
Gareth
Thank you very much for your response. But I could not find anything in my plugin.xml (Guessing that Chris' feature.xml is my plugin.xml) to unpack the jar during install. I guess the problem for not displaying the image in html files is that the html file is read to cache by toFileURL() method and the file contents are read and its not able to find the image there. I have to fix it somehow as the dead line is nearby. Anyways, please let me know if you find out any way to sort out this problem.
Thanks,
Rupa