Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrocky2015-06-30 16:46:59 +0000
committerrocky2015-06-30 16:46:59 +0000
commitdb7402472040a2fe72b660e318d10e4868be433e (patch)
treef927df48b198f7b77ed23aac322bc871b857df87
parentcea4bd4eb3218adc2f14c7282d06f1707b373de0 (diff)
downloadorg.eclipse.remote-db7402472040a2fe72b660e318d10e4868be433e.tar.gz
org.eclipse.remote-db7402472040a2fe72b660e318d10e4868be433e.tar.xz
org.eclipse.remote-db7402472040a2fe72b660e318d10e4868be433e.zip
Bug 470321: JschUserAuthenticator should not create new shell
Change-Id: Ie3aea93eaa75f4e3463070791b7b586e907511d1 Signed-off-by: rocky <rocky@cc.gatech.edu>
-rw-r--r--bundles/org.eclipse.remote.jsch.ui/src/org/eclipse/remote/internal/jsch/ui/JSchUserAuthenticator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/bundles/org.eclipse.remote.jsch.ui/src/org/eclipse/remote/internal/jsch/ui/JSchUserAuthenticator.java b/bundles/org.eclipse.remote.jsch.ui/src/org/eclipse/remote/internal/jsch/ui/JSchUserAuthenticator.java
index ec78a40..f3fba2d 100644
--- a/bundles/org.eclipse.remote.jsch.ui/src/org/eclipse/remote/internal/jsch/ui/JSchUserAuthenticator.java
+++ b/bundles/org.eclipse.remote.jsch.ui/src/org/eclipse/remote/internal/jsch/ui/JSchUserAuthenticator.java
@@ -20,7 +20,6 @@ import org.eclipse.remote.core.IRemoteConnection;
import org.eclipse.remote.core.IUserAuthenticatorService;
import org.eclipse.remote.internal.jsch.core.JSchConnection;
import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
@@ -91,7 +90,7 @@ public class JSchUserAuthenticator implements IUserAuthenticatorService {
display.syncExec(new Runnable() {
@Override
public void run() {
- final MessageDialog dialog = new MessageDialog(new Shell(display), title, null /* title image */, message,
+ final MessageDialog dialog = new MessageDialog(display.getActiveShell(), title, null /* title image */, message,
promptType, buttons, defaultResponseIndex);
retval[0] = dialog.open();
}

Back to the top