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 130610 Details for
Bug 270872
[Browser] getSource() is needed.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Show the result of getText() on click, which differs from what was set
BrowserSourceSWT.java (text/x-java), 1.01 KB, created by
Christopher Deckers
on 2009-04-01 16:02:56 EDT
(
hide
)
Description:
Show the result of getText() on click, which differs from what was set
Filename:
MIME Type:
Creator:
Christopher Deckers
Created:
2009-04-01 16:02:56 EDT
Size:
1.01 KB
patch
obsolete
>package test; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.browser.Browser; >import org.eclipse.swt.events.MouseAdapter; >import org.eclipse.swt.events.MouseEvent; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >/** > * @author Christopher Deckers > */ >public class BrowserSourceSWT { > > public static void main(String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > final Browser browser = new Browser(shell, SWT.NONE); > browser.setText("<html><body></body></html>"); > browser.addMouseListener(new MouseAdapter() { > @Override > public void mouseDown(MouseEvent e) { > System.err.println(browser.getText()); > } > }); > shell.setSize(800, 600); > shell.open(); > while(!shell.isDisposed()) { > if(!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > } >}
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 270872
: 130610