diff options
author | Tom Schindl | 2016-01-27 23:42:09 +0000 |
---|---|---|
committer | Tom Schindl | 2016-01-27 23:42:09 +0000 |
commit | 906f10087e965b276d7ab188b73f029a5d84582a (patch) | |
tree | 75cfcb19c1ce23c0238f0d4e6d6a27403aa635ab | |
parent | 320192cbf9abedd710873dc2dc9aa240680c291e (diff) | |
download | org.eclipse.efxclipse-906f10087e965b276d7ab188b73f029a5d84582a.tar.gz org.eclipse.efxclipse-906f10087e965b276d7ab188b73f029a5d84582a.tar.xz org.eclipse.efxclipse-906f10087e965b276d7ab188b73f029a5d84582a.zip |
Bug 486686 - Bring back BlockCondition / EventLoop Spinning
2 files changed, 4 insertions, 0 deletions
diff --git a/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/Util.java b/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/Util.java index 988d598ca..9ced7b881 100644 --- a/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/Util.java +++ b/bundles/runtime/org.eclipse.fx.ui.controls/src/org/eclipse/fx/ui/controls/Util.java @@ -311,6 +311,7 @@ public class Util { *
* @param id
* the id of the nested event loop
+ * @since 2.3.0
*/
public static void enterNestedEventLoop(String id) {
if (org.eclipse.fx.core.Util.isFX9()) {
@@ -345,6 +346,7 @@ public class Util { *
* @param id
* the nested event loop
+ * @since 2.3.0
*/
public static void exitNestedEventLoop(String id) {
if (org.eclipse.fx.core.Util.isFX9()) {
@@ -380,6 +382,7 @@ public class Util { * @param blockCondition
* the condition
* @return the return value of the condition
+ * @since 2.3.0
*/
public static <T> @Nullable T waitUntil(@NonNull BlockCondition<T> blockCondition) {
AtomicReference<@Nullable T> rv = new AtomicReference<>();
diff --git a/bundles/runtime/org.eclipse.fx.ui.services/src/org/eclipse/fx/ui/services/sync/UISynchronize.java b/bundles/runtime/org.eclipse.fx.ui.services/src/org/eclipse/fx/ui/services/sync/UISynchronize.java index 2903225cd..a7273960d 100644 --- a/bundles/runtime/org.eclipse.fx.ui.services/src/org/eclipse/fx/ui/services/sync/UISynchronize.java +++ b/bundles/runtime/org.eclipse.fx.ui.services/src/org/eclipse/fx/ui/services/sync/UISynchronize.java @@ -25,6 +25,7 @@ public interface UISynchronize extends ThreadSynchronize { * @param blockCondition
* the condition
* @return the return value of the condition
+ * @since 2.3.0
*/
public default <T> @Nullable T waitUntil(@NonNull BlockCondition<T> blockCondition) {
return Util.waitUntil(blockCondition);
|