mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 20:15:22 +02:00
promptForNewPassword API should be public for reuse
This commit is contained in:
parent
cab7dd53f2
commit
4492b011f2
1 changed files with 2 additions and 2 deletions
|
@ -1168,13 +1168,13 @@ public abstract class AbstractConnectorService extends RSEModelObject implements
|
||||||
log.logError("Unexpected exception", t); //$NON-NLS-1$
|
log.logError("Unexpected exception", t); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
protected NewPasswordInfo promptForNewPassword(SystemMessage prompt) throws InterruptedException
|
public NewPasswordInfo promptForNewPassword(SystemMessage prompt) throws InterruptedException
|
||||||
{
|
{
|
||||||
ShowPromptForNewPassword msgAction = new ShowPromptForNewPassword(prompt);
|
ShowPromptForNewPassword msgAction = new ShowPromptForNewPassword(prompt);
|
||||||
Display.getDefault().syncExec(msgAction);
|
Display.getDefault().syncExec(msgAction);
|
||||||
if (msgAction.isCancelled()) throw new InterruptedException();
|
if (msgAction.isCancelled()) throw new InterruptedException();
|
||||||
return new NewPasswordInfo(msgAction.getNewPassword(), msgAction.isSavePassword());
|
return new NewPasswordInfo(msgAction.getNewPassword(), msgAction.isSavePassword());
|
||||||
}
|
}
|
||||||
|
|
||||||
private class ShowPromptForNewPassword implements Runnable
|
private class ShowPromptForNewPassword implements Runnable
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue