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 195031 Details for
Bug 345082
[Browser] puts IE8 in infinite loop.
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.
IEntryPoint to reproduce the issue
EP.java (text/x-java), 2.26 KB, created by
Chris Fairhall
on 2011-05-08 21:48:47 EDT
(
hide
)
Description:
IEntryPoint to reproduce the issue
Filename:
MIME Type:
Creator:
Chris Fairhall
Created:
2011-05-08 21:48:47 EDT
Size:
2.26 KB
patch
obsolete
>package bugtest1; > >import org.eclipse.jface.dialogs.Dialog; >import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.rwt.lifecycle.IWidgetAdapter; >import org.eclipse.swt.SWT; >import org.eclipse.swt.browser.Browser; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Control; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Event; >import org.eclipse.swt.widgets.Listener; >import org.eclipse.swt.widgets.Shell; > >public class EP implements IEntryPoint { > public int createUI() { > final Display display = Display.getDefault(); > final Shell shell = new Shell(display, SWT.SHELL_TRIM); > Button openDialog = new Button(shell, SWT.PUSH); > openDialog.setText("Open Dialog"); > openDialog.setBounds(40, 80, 100, 40); > openDialog.addListener(SWT.Selection, new Listener() { > public void handleEvent(Event event) { > new DialogWithBrowser(shell).open(); > } > }); > shell.setSize(180, 140); > shell.setVisible(true); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) display.sleep(); > } > return 0; > } >} >class DialogWithBrowser extends Dialog { > protected DialogWithBrowser(Shell parentShell) { > super(parentShell); > } > protected Control createDialogArea(Composite parent) { > Composite c0 = (Composite) super.createDialogArea(parent); > Browser browser = new Browser(c0, SWT.NONE); > browser.setText("<html><head></head><body><a href='blah'>testing</a></body></html>"); > Browser browser2 = new Browser(c0, SWT.NONE); > browser2.setText("<html><head></head><body><a href='blah'>testing</a></body></html>"); > return c0; > } > @Override > public boolean close() { > dumpChildData(getShell(), 0); > return super.close(); > } > > private void dumpChildData(Composite composite, int i) { > for (Control control : composite.getChildren()) { > for (int x = 0; x < i; x++) { > System.out.print(" "); > } > System.out.print(control + " "); > IWidgetAdapter ada = (IWidgetAdapter) control.getAdapter(IWidgetAdapter.class); > if (ada != null) { > System.out.print(" id="+ada.getId()); > } > System.out.println(); > if (control instanceof Composite) { > Composite c = (Composite) control; > dumpChildData(c, i + 1); > } > } > } >}
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 345082
: 195031 |
195033