Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-13 12:01:24 -0400
committerjames2002-05-13 12:01:24 -0400
commit5d62f2f3cefe6da013bf3ce193e265d8c84d1183 (patch)
tree9928519dc7cf5d102092c56baab154d424ae8621 /bundles/org.eclipse.team.cvs.ui
parent6c531257744694c8471af8e2a31c26c61c016c91 (diff)
downloadeclipse.platform.team-5d62f2f3cefe6da013bf3ce193e265d8c84d1183.tar.gz
eclipse.platform.team-5d62f2f3cefe6da013bf3ce193e265d8c84d1183.tar.xz
eclipse.platform.team-5d62f2f3cefe6da013bf3ce193e265d8c84d1183.zip
Alternate password prompter remap of F-keys
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RepositoriesView.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RepositoriesView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RepositoriesView.java
index cf0930435..ce61d57b0 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RepositoriesView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RepositoriesView.java
@@ -30,6 +30,8 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Tree;
+import org.eclipse.team.internal.ccvs.core.CVSException;
+import org.eclipse.team.internal.ccvs.core.CVSProvider;
import org.eclipse.team.internal.ccvs.core.CVSTag;
import org.eclipse.team.internal.ccvs.core.ICVSRemoteFile;
import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation;
@@ -240,6 +242,19 @@ public class RepositoriesView extends ViewPart {
viewer.getControl().addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent event) {
if (event.keyCode == SWT.F5) {
+ if (WorkbenchUserAuthenticator.USE_ALTERNATE_PROMPTER) {
+ try {
+ ICVSRepositoryLocation[] locations = CVSProvider.getInstance().getKnownRepositories();
+ for (int i = 0; i < locations.length; i++) {
+ locations[i].flushUserInfo();
+ }
+ } catch (CVSException e) {
+ // Do nothing
+ }
+ } else {
+ refreshAction.run();
+ }
+ } else if (event.keyCode == SWT.F9 && WorkbenchUserAuthenticator.USE_ALTERNATE_PROMPTER) {
refreshAction.run();
}
}

Back to the top