[sync] Fix SIOoBE for non-workspace files
commitf8777aacad8a27da7190b0287fc20fc061284f8a
authorDariusz Luksza <dariusz@luksza.org>
Wed, 23 Mar 2011 06:26:39 +0000 (22 23:26 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 23 Mar 2011 06:26:39 +0000 (22 23:26 -0700)
tree7082b6ca91d43d8093414728a3fec937580bbde3
parent5d353800b89b67dfca8d74179f994e417d147776
[sync] Fix SIOoBE for non-workspace files

The StringIndexOutOfBoundsException occurs when compare editor was
launched for non-workspace files from synchronization view.

This change also includes tests for displaying non-workspace files in
synchronization view and for opening compare editor for them.

Change-Id: I01305cb3afa84b76416b9d5cf79ed9aba9f55b28
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/synchronize/SynchronizeViewTest.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/CompareUtils.java