-
Notifications
You must be signed in to change notification settings - Fork 182
Spin the event loop to process the paste operation completely. #2489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spin the event loop to process the paste operation completely. #2489
Conversation
492302a
to
a0ea5cf
Compare
...se.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java
Outdated
Show resolved
Hide resolved
Test Results 409 files - 137 409 suites - 137 19m 16s ⏱️ - 10m 17s Results for commit 151a7ca. ± Comparison against base commit fdbb769. This pull request removes 37 tests.
♻️ This comment has been updated with latest results. |
a0ea5cf
to
b46f409
Compare
@raghucssit should we enhance javadoc to mention that calling copy / paste will not immediate update the state and one should possibly use asyncExec wif accessing the control is desired (that would probably also work for the test to use async exec but it of course complicates the test assertions maybe). |
b46f409
to
bdeb6a3
Compare
I have updated copy/paste doc. |
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not recommend spinning the event loop except in text, in regular UI code using asyncExec should be sufficient.
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
Outdated
Show resolved
Hide resolved
Manually when copy and paste done on combo it works as expected. But while calling copy and paste API on combo there is an inconsistency. It is due to pending UI events before we check text on combo. see eclipse-platform#2485
bdeb6a3
to
151a7ca
Compare
Known GTK4 tests are failing, the fixed Combo tests are passing. |
Manually when copy and paste done on combo it works as expected. But while calling copy and paste API on combo there is an inconsistency. It is due to pending UI events before we check text on combo.
see #2485