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:


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" /> ?


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

You can set the base location from which relative locations are resolved
with the <base> tag. For an example of this see: ppets/src/org/eclipse/swt/snippets/ amp;content-type=text/vnd.viewcvs-markup

If you need to determine your plugin's location you can use


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

Current Time: Tue Oct 27 16:35:03 GMT 2020

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

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

Back to the top