Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-02-14 19:26:01 +0000
committerjames2002-02-14 19:26:01 +0000
commit4f272cc30fe35581bb07ac9f3b5b26ec441d98f9 (patch)
tree28943ae5676c61d6602afcf5df544f8aef66a8a7 /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java
parent7eb98b26f8e30b86c52792c69f9279b71e8e1060 (diff)
downloadeclipse.platform.team-4f272cc30fe35581bb07ac9f3b5b26ec441d98f9.tar.gz
eclipse.platform.team-4f272cc30fe35581bb07ac9f3b5b26ec441d98f9.tar.xz
eclipse.platform.team-4f272cc30fe35581bb07ac9f3b5b26ec441d98f9.zip
9775: Opening revisions of files in Show in Resource History should suffix the name
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java
index aada09b51..40ea8267e 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/RemoteFileEditorInput.java
@@ -138,8 +138,12 @@ public class RemoteFileEditorInput implements IWorkbenchAdapter, IStorageEditorI
* <code>getName</code> is "MyFile.gif".
*/
public String getName() {
- // To do: add version information here
- return file.getName();
+ String name = file.getName();
+ try {
+ return name + " " + file.getRevision();
+ } catch (TeamException e) {
+ return name;
+ }
}
/**
* Returns the logical parent of the given object in its tree.

Back to the top