Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-22 18:09:59 +0000
committerJean Michel-Lemieux2003-09-22 18:09:59 +0000
commitb6ddfce0f5045f23588b166421c5958730d8cb82 (patch)
tree6eb1860479d5e86146129d6a493b1bef070257af
parentf24bbc4735caa647543a06debf5cdfdf0df8efea (diff)
downloadeclipse.platform.team-b6ddfce0f5045f23588b166421c5958730d8cb82.tar.gz
eclipse.platform.team-b6ddfce0f5045f23588b166421c5958730d8cb82.tar.xz
eclipse.platform.team-b6ddfce0f5045f23588b166421c5958730d8cb82.zip
Added linking to IFileEditor inputs.
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryView.java8
1 files changed, 8 insertions, 0 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 5fce4e08b..d03d938e3 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
@@ -91,6 +91,7 @@ import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IActionDelegate;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchPart;
@@ -659,6 +660,7 @@ public class HistoryView extends ViewPart {
return;
}
IEditorInput input = editor.getEditorInput();
+ // Handle compare editors opened from the Synchronize View
if (input instanceof SyncInfoCompareInput) {
SyncInfoCompareInput syncInput = (SyncInfoCompareInput) input;
SyncInfo info = syncInput.getSyncInfo();
@@ -671,11 +673,17 @@ public class HistoryView extends ViewPart {
showHistory(base);
}
}
+ // Handle editors opened on remote files
} else if(input instanceof RemoteFileEditorInput) {
ICVSRemoteFile remote = ((RemoteFileEditorInput)input).getCVSRemoteFile();
if(remote != null) {
showHistory(remote);
}
+ // Handle regular file editors
+ } else if (input instanceof IFileEditorInput) {
+ IFileEditorInput fileInput = (IFileEditorInput) input;
+ IFile file = fileInput.getFile();
+ showHistory(file);
}
}

Back to the top