diff options
author | Joerg Kubitz | 2021-09-06 06:39:23 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2021-09-17 14:10:46 +0000 |
commit | 35e8de04b93111d2185a3335fb6119125c50f799 (patch) | |
tree | 6923344124b965308ff8640d1dfaa56d59fae85b | |
parent | c7b9e470322142529ccb4bd8f07d1e19019d46c8 (diff) | |
download | rt.equinox.bundles-35e8de04b93111d2185a3335fb6119125c50f799.tar.gz rt.equinox.bundles-35e8de04b93111d2185a3335fb6119125c50f799.tar.xz rt.equinox.bundles-35e8de04b93111d2185a3335fb6119125c50f799.zip |
Bug 575823 - use Display.syncCall(SwtCallable)S4_22_0_M1I20211005-1800I20211004-2030I20211003-1800I20211002-1800I20211002-0220I20211001-1800I20210929-1800I20210929-0600I20210928-1800I20210928-0600I20210927-1800I20210927-0600I20210926-1800I20210926-0600I20210925-1800I20210925-0600I20210924-1800I20210924-0200I20210923-1800I20210922-1800I20210921-1800I20210920-1800I20210919-1800I20210919-0120I20210918-1800I20210917-1800
Change-Id: I0a27d176cc1c82461920bacfa3cdb2b809aea7bc
Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.bundles/+/185027
Tested-by: Equinox Bot <equinox-bot@eclipse.org>
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF | 1 | ||||
-rw-r--r-- | bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/UICallbackProvider.java | 8 |
2 files changed, 3 insertions, 6 deletions
diff --git a/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF index 9969680a0..9907cdedb 100644 --- a/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.equinox.security.ui/META-INF/MANIFEST.MF @@ -17,6 +17,7 @@ Import-Package: javax.crypto.spec, org.osgi.util.tracker;version="[1.3.3,2.0.0)" Require-Bundle: org.eclipse.equinox.security;bundle-version="[1.0.0,2.0.0)", org.eclipse.equinox.preferences;bundle-version="[3.2.200,4.0.0)", + org.eclipse.swt;bundle-version="[3.118.0,4.0.0)", org.eclipse.ui;bundle-version="[3.4.0,4.0.0)", org.eclipse.core.runtime; bundle-version="[3.4.0,4.0.0)" Bundle-Activator: org.eclipse.equinox.internal.security.ui.Activator diff --git a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/UICallbackProvider.java b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/UICallbackProvider.java index 2df31af6d..dca3ba9c1 100644 --- a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/UICallbackProvider.java +++ b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/storage/UICallbackProvider.java @@ -136,12 +136,8 @@ public class UICallbackProvider implements IUICallbacks { if (!StorageUtils.showUI(null)) // container-independent operation return null; - final Boolean[] result = new Boolean[1]; - PlatformUI.getWorkbench().getDisplay().syncExec(() -> { - boolean reply = MessageDialog.openConfirm(StorageUtils.getShell(), SecUIMessages.generalDialogTitle, msg); - result[0] = Boolean.valueOf(reply); - }); - return result[0]; + return PlatformUI.getWorkbench().getDisplay().syncCall( + () -> MessageDialog.openConfirm(StorageUtils.getShell(), SecUIMessages.generalDialogTitle, msg)); } @Override |