Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 205434 Details for
Bug 361271
[Browser] Doesn't support LocationListener properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
The example mentioned in my report.
BrowserBug.java (text/x-java), 1.21 KB, created by
Sebastian Bauer
on 2011-10-18 11:46:06 EDT
(
hide
)
Description:
The example mentioned in my report.
Filename:
MIME Type:
Creator:
Sebastian Bauer
Created:
2011-10-18 11:46:06 EDT
Size:
1.21 KB
patch
obsolete
>import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.browser.Browser; >import org.eclipse.swt.browser.LocationEvent; >import org.eclipse.swt.browser.LocationListener; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class BrowserBug implements IEntryPoint >{ > @Override > public int createUI() > { > Display display = new Display(); > Shell shell = new Shell( display, 0 ); > shell.setLayout(new FillLayout()); > > Browser browser = new Browser(shell,0); > browser.addLocationListener(new LocationListener() { > @Override > public void changing(LocationEvent event) { > System.out.println("Changing: " + event.location); > } > > @Override > public void changed(LocationEvent event) { > System.out.println("Changed: " + event.location); > } > }); > String txt = "<html><body><a href=\"http://www.google.de\">Link</a></body></html>"; > System.out.println(txt); > browser.setText(txt); > > shell.setMaximized(true); > shell.layout(); > shell.open(); > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) > display.sleep(); > } > display.dispose(); > return 0; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 361271
: 205434