Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt browser don't download and display images
swt browser don't download and display images [message #558937] Wed, 15 September 2010 03:17 Go to next message
LiLi Mising name is currently offline LiLi Mising name
Messages: 15
Registered: February 2010
Junior Member
I want to use it as a crawler that can deal with javascript. but it will download many other files such as jpg files. Is there any method to stop download image files to save bandwidth? thanks.
Re: swt browser don't download and display images [message #560198 is a reply to message #558937] Tue, 21 September 2010 14:11 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
Hi,

There isn't a way to make SWT.NONE-style Browsers do this.

It is probably possible to achieve this with SWT.MOZILLA-style Browsers via JavaXPCOM, since this can be done in stand-alone Firefox (Tools > Options > Content page > "Load Images Automatically"). However I'm not sure how they do it under the covers, so you probably need to have a look in their source, unless a google search finds you an answer more directly.

For info on using JavaXPCOM with the Browser see http://www.eclipse.org/swt/faq.php#howusejavaxpcom . And there are some example snippets, see the last six links in the "Browser" section of http://www.eclipse.org/swt/snippets#browser .

Grant
Previous Topic:Insert Text in Editor
Next Topic:Gtk TYPE_HINT_DIALOG
Goto Forum:
  


Current Time: Sun Oct 26 07:08:10 GMT 2014

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

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