Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Locatiing resources with SWT Browser and in-memory HTML
Locatiing resources with SWT Browser and in-memory HTML [message #458864] Mon, 25 July 2005 06:14 Go to next message
Eclipse UserFriend
Originally posted by: oruhling.web.de

Hi,

I'm using eclipse 3.1 (Windows) and want to use the browser for a preview
function in a custom wizard. My problem is, that I don't where the browser
searches for resources when I'm setting the content with browser.setText.

E.g. where do I have to place a 'test.jpg' when the html page contains <img
src="test.jpg" /> ?

thanks

Oliver
Re: Locatiing resources with SWT Browser and in-memory HTML [message #458881 is a reply to message #458864] Mon, 25 July 2005 14:44 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Oliver,

You can set the base location from which relative locations are resolved
with the <base> tag. For an example of this see:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet137.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

If you need to determine your plugin's location you can use
Platform.resolve(plugin.getBundle().getEntry(".")).toString();

Grant

"Oliver R
Previous Topic:Column reorder event?
Next Topic:quick question on CellEditors
Goto Forum:
  


Current Time: Thu Apr 25 15:27:08 GMT 2024

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

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

Back to the top