Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-01-30 17:10:30 +0000
committerjames2002-01-30 17:10:30 +0000
commitfb88c13ba5b9d6c1deec6df076fd13d7c635a629 (patch)
tree1c6f042a2e8879d3697c5a4e2ece6aa957becea8
parent2cc7da51a7a66fd6585e2ddbc1d99050b1389c92 (diff)
downloadeclipse.platform.team-fb88c13ba5b9d6c1deec6df076fd13d7c635a629.tar.gz
eclipse.platform.team-fb88c13ba5b9d6c1deec6df076fd13d7c635a629.tar.xz
eclipse.platform.team-fb88c13ba5b9d6c1deec6df076fd13d7c635a629.zip
8724: History view uses double-click listener instead of selection listener
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java2
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java5
2 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
index f33a98210..5658bb14f 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java
@@ -164,7 +164,7 @@ public class HistoryView extends ViewPart implements ISelectionListener {
// Double click open action
openAction = new OpenRemoteFileAction();
- tableViewer.getTable().addListener(SWT.MouseDoubleClick, new Listener() {
+ tableViewer.getTable().addListener(SWT.DefaultSelection, new Listener() {
public void handleEvent(Event e) {
openAction.selectionChanged(null, tableViewer.getSelection());
openAction.run(null);
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java
index c0afa7e1c..932971e17 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/OpenRemoteFileAction.java
@@ -16,6 +16,7 @@ import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.team.ccvs.core.ICVSRemoteFile;
+import org.eclipse.team.ccvs.core.ILogEntry;
import org.eclipse.team.core.TeamException;
import org.eclipse.team.internal.ccvs.ui.CVSUIPlugin;
import org.eclipse.team.internal.ccvs.ui.Policy;
@@ -39,6 +40,10 @@ public class OpenRemoteFileAction extends TeamAction {
resources.add(next);
continue;
}
+ if (next instanceof ILogEntry) {
+ resources.add(((ILogEntry)next).getRemoteFile());
+ continue;
+ }
if (next instanceof IAdaptable) {
IAdaptable a = (IAdaptable) next;
Object adapter = a.getAdapter(ICVSRemoteFile.class);

Back to the top