mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 15:45:25 +02:00
null shell to show password dialog
This commit is contained in:
parent
c5341d32ff
commit
69a9ef0ecb
1 changed files with 7 additions and 1 deletions
|
@ -42,6 +42,7 @@ import org.eclipse.rse.ui.messages.SystemMessageDialog;
|
|||
import org.eclipse.rse.ui.validators.ISystemValidator;
|
||||
import org.eclipse.swt.widgets.Display;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -508,7 +509,12 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
|
|||
shell = SystemBasePlugin.getActiveWorkbenchShell();
|
||||
}
|
||||
|
||||
if (supportsPassword() || supportsUserId()) {
|
||||
if (supportsPassword() || supportsUserId())
|
||||
{
|
||||
if (shell == null)
|
||||
{
|
||||
shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
|
||||
}
|
||||
if (shell != null) {
|
||||
boolean passwordNeeded = supportsPassword() && _passwordInfo.getPassword() == null;
|
||||
boolean userIdNeeded = supportsUserId() && _passwordInfo.getUserid() == null;
|
||||
|
|
Loading…
Add table
Reference in a new issue