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 287304 Details for
Bug 576574
Display.timerExec RWT behaves very differently to pure SWT
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.
remove /**/ to switch between RWT and SWT
file_576574.txt (text/plain), 1.02 KB, created by
Vincent Lustermann
on 2021-10-12 08:30:53 EDT
(
hide
)
Description:
remove /**/ to switch between RWT and SWT
Filename:
MIME Type:
Creator:
Vincent Lustermann
Created:
2021-10-12 08:30:53 EDT
Size:
1.02 KB
patch
obsolete
>public class Snippet /* extends AbstractEntryPoint */ { > > private static final long serialVersionUID = 1L; > > public static void main(final String[] args) { > final Display display = new Display(); > final Shell shell = new Shell(display); > shell.setText("Snippet"); //$NON-NLS-1$ > shell.open(); > > common(shell); > > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > } > > /* RAP */ > // @Override > // protected void createContents(final Composite parent) { > // common(parent); > // } > > private static void common(final Composite parent) { > final Display display = parent.getDisplay(); > final Label label = new Label(parent, SWT.NONE); > > final Runnable runnable = () -> { > label.setText("Blah"); //$NON-NLS-1$ > System.out.println("runnable executed"); //$NON-NLS-1$ > }; > display.timerExec(50, runnable); > display.timerExec(50, runnable); > display.timerExec(50, runnable); > // expected: runnable only run once -> see console log > } >}
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 576574
: 287304