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 285608 Details for
Bug 571359
[macOS] Big Sur: Paint listener of invisible controls is invoked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
PaintInvisibleTest.java (text/plain), 897 bytes, created by
Thomas Singer
on 2021-02-19 07:26:05 EST
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-02-19 07:26:05 EST
Size:
897 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.custom.*; >import org.eclipse.swt.widgets.*; > >/** > * @author Thomas Singer > */ >public class PaintInvisibleTest { > > public static void main(String[] args) { > final Display display = new Display(); > > final Shell shell = new Shell(display); > final StackLayout layout = new StackLayout(); > shell.setLayout(layout); > > for (int i = 0; i < 2; i++) { > final StyledText styledText = new StyledText(shell, SWT.READ_ONLY | SWT.BORDER); > final String text = String.valueOf(i); > styledText.setText(text); > styledText.addListener(SWT.Paint, event -> System.out.println(text)); > > if (i == 0) { > layout.topControl = styledText; > } > } > > shell.setSize(400, 300); > 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 571359
: 285608