Fix incorrect editor updates with changes from diff-viewer
commit03499e9cd2bbb17551ce4abdcbbec94a41ec119a
authorJens Baumgart <jens.baumgart@sap.com>
Thu, 15 Apr 2010 13:12:41 +0000 (15 15:12 +0200)
committerJens Baumgart <jens.baumgart@sap.com>
Thu, 15 Apr 2010 13:12:41 +0000 (15 15:12 +0200)
treebb6401122bb810765c40553a023b29fcc45999fa
parent45b206ac6a565f79d7bcda970d405099ab168fb0
Fix incorrect editor updates with changes from diff-viewer

The issue occurs if BlobStorage.getFullPath returns a path
that is equal to the path of the file in the workspace. In this
case Eclipse seems to share the editor documents.
The fix provides new implementations for getFullPath
which provide a path of form
<repositoy name>/<path> <commit id>
When viewing a revision this path is shown as tool tip
of the editor title (similar to CVS).

Bug: 302145
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/Utils.java [new file with mode: 0644]
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/BlobStorage.java
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/CommitBlobStorage.java [new file with mode: 0644]
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/CommitFileRevision.java
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/IndexBlobStorage.java [new file with mode: 0644]
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/IndexFileRevision.java