1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[180091] StandardCredentialsProvider should not get its shell from the workbench.

This commit is contained in:
David Dykstal 2007-03-30 13:33:55 +00:00
parent 71205e11f4
commit 31aa7c0abf

View file

@ -29,6 +29,7 @@ import org.eclipse.rse.ui.dialogs.SystemChangePasswordDialog;
import org.eclipse.rse.ui.dialogs.SystemPasswordPromptDialog;
import org.eclipse.rse.ui.messages.SystemMessageDialog;
import org.eclipse.rse.ui.validators.ISystemValidator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
@ -329,7 +330,8 @@ public class StandardCredentialsProvider extends AbstractCredentialsProvider {
}
private Shell getShell() {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
Display display = Display.getDefault();
Shell shell = new Shell(display, SWT.APPLICATION_MODAL);
return shell;
}