mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Bug 470321: JschUserAuthenticator should not create new shell
Change-Id: Ie3aea93eaa75f4e3463070791b7b586e907511d1 Signed-off-by: rocky <rocky@cc.gatech.edu>
This commit is contained in:
parent
cea4bd4eb3
commit
db74024720
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue