Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-02-05 15:51:43 +0000
committerjames2002-02-05 15:51:43 +0000
commit1ddd6fba8b8c6e8a8e2719505e81d8981c4ce32a (patch)
treec75346f261d963b59f75ed72f6d91af79e99879c
parent03db183a6a19d36e350f007f48a7470ee505bec8 (diff)
downloadeclipse.platform.team-1ddd6fba8b8c6e8a8e2719505e81d8981c4ce32a.tar.gz
eclipse.platform.team-1ddd6fba8b8c6e8a8e2719505e81d8981c4ce32a.tar.xz
eclipse.platform.team-1ddd6fba8b8c6e8a8e2719505e81d8981c4ce32a.zip
Fix syncExec
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/WorkbenchUserAuthenticator.java22
1 files changed, 9 insertions, 13 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/WorkbenchUserAuthenticator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/WorkbenchUserAuthenticator.java
index a3e8e6828..698bee2d9 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/WorkbenchUserAuthenticator.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/WorkbenchUserAuthenticator.java
@@ -89,19 +89,15 @@ public class WorkbenchUserAuthenticator implements IUserAuthenticator {
* @param result a String array of length two in which to put the result
*/
private void promptForPassword(final ICVSRepositoryLocation location, final String username, final String message, final boolean userMutable, final String[] result) {
- final Display display = Display.getDefault();
- display.syncExec(new Runnable() {
- public void run() {
- Shell shell = new Shell(display);
- UserValidationDialog dialog = new UserValidationDialog(shell, location.getLocation(), (username==null)?"":username, message);
- dialog.setUsernameMutable(userMutable);
- dialog.open();
-
- shell.dispose();
- result[0] = dialog.getUsername();
- result[1] = dialog.getPassword();
- }
- });
+ Display display = Display.getCurrent();
+ Shell shell = new Shell(display);
+ UserValidationDialog dialog = new UserValidationDialog(shell, location.getLocation(), (username==null)?"":username, message);
+ dialog.setUsernameMutable(userMutable);
+ dialog.open();
+
+ shell.dispose();
+ result[0] = dialog.getUsername();
+ result[1] = dialog.getPassword();
}
/**
* @see IUserAuthenticator#cachePassword

Back to the top