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 274430 Details for
Bug 535738
Dialog rendering broken on Wayland after requestLayout()
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.
Snippet that demonstrates the problem
Snippet136.java (text/x-java), 1.82 KB, created by
Wim Jongman
on 2018-06-11 11:23:59 EDT
(
hide
)
Description:
Snippet that demonstrates the problem
Filename:
MIME Type:
Creator:
Wim Jongman
Created:
2018-06-11 11:23:59 EDT
Size:
1.82 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2000, 2009 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * IBM Corporation - initial API and implementation > *******************************************************************************/ >package org.eclipse.swt.snippets; > >/* > * Browser example snippet: render HTML from memory > * > * For a list of all SWT example snippets see > * http://www.eclipse.org/swt/snippets/ > * > * @since 3.0 > */ >import org.eclipse.swt.*; >import org.eclipse.swt.browser.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class Snippet136 { > public static void main(String[] args) { > > Display display = new Display(); > Shell shell = new Shell(display); > shell.setLayout(new FillLayout()); > Composite browser; > try { > // browser = new Browser(shell, SWT.NONE); > browser = new Composite(shell, SWT.NONE); > } catch (SWTError e) { > System.out.println("Could not instantiate Browser: " + e.getMessage()); > display.dispose(); > return; > } > // browser.setText(getHtml()); > > Button b = new Button(shell, SWT.NONE); > b.setText("pushme"); > b.addListener(SWT.Selection, event -> { > // browser.setText(getHtml()); > shell.requestLayout(); > }); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) > display.sleep(); > } > display.dispose(); > } > > private static String getHtml() { > String html = "<HTML><HEAD><TITLE>HTML Test</TITLE></HEAD><BODY>"; > for (int i = 0; i < 100; i++) > html += "<P>This is line " + i + "</P>"; > html += "</BODY></HTML>"; > return html; > } >}
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 535738
:
274411
|
274420
|
274429
| 274430 |
274431
|
274432
|
274433