1
0
Fork 0
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:
David McKnight 2007-01-15 17:55:05 +00:00
parent cab7dd53f2
commit 4492b011f2

View file

@ -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
{ {