Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-02-01 16:12:48 +0000
committerjames2002-02-01 16:12:48 +0000
commit45b44c1817b9e7e2c9f1b9cef03c5bb2ab793b5f (patch)
treefe0807bf325d7b8e77da91dba18a2b656de45a3b
parent2815f3b361c03d664311ea51d421734cb22c68b8 (diff)
downloadeclipse.platform.team-45b44c1817b9e7e2c9f1b9cef03c5bb2ab793b5f.tar.gz
eclipse.platform.team-45b44c1817b9e7e2c9f1b9cef03c5bb2ab793b5f.tar.xz
eclipse.platform.team-45b44c1817b9e7e2c9f1b9cef03c5bb2ab793b5f.zip
8896: F5 doesn't work in Repo View
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RepositoriesView.java12
1 files changed, 11 insertions, 1 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 52daa6763..5ddcb3025 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
@@ -18,6 +18,8 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.KeyAdapter;
+import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
@@ -60,6 +62,7 @@ public class RepositoriesView extends ViewPart {
private Action showFoldersAction;
private Action showModulesAction;
private OpenRemoteFileAction openAction;
+ private Action refreshAction;
IRepositoryListener listener = new IRepositoryListener() {
public void repositoryAdded(ICVSRepositoryLocation root) {
@@ -97,7 +100,7 @@ public class RepositoriesView extends ViewPart {
// Create actions
// Refresh (toolbar)
- final Action refreshAction = new Action(Policy.bind("RepositoriesView.refresh"), CVSUIPlugin.getPlugin().getImageDescriptor(ICVSUIConstants.IMG_REFRESH)) {
+ refreshAction = new Action(Policy.bind("RepositoriesView.refresh"), CVSUIPlugin.getPlugin().getImageDescriptor(ICVSUIConstants.IMG_REFRESH)) {
public void run() {
viewer.refresh();
}
@@ -187,6 +190,13 @@ public class RepositoriesView extends ViewPart {
viewer.setLabelProvider(new WorkbenchLabelProvider());
viewer.setInput(root);
viewer.setSorter(new RepositorySorter());
+ viewer.getControl().addKeyListener(new KeyAdapter() {
+ public void keyPressed(KeyEvent event) {
+ if (event.keyCode == SWT.F5) {
+ refreshAction.run();
+ }
+ }
+ });
drillPart = new DrillDownAdapter(viewer);
contributeActions();
CVSUIPlugin.getPlugin().getRepositoryManager().addRepositoryListener(listener);

Back to the top