Fix sharing wizard page "Select Git Repository Location"
commitc86317db9d702c856c8c07c3c5c8a49f7e2e0e56
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 30 Dec 2009 16:10:00 +0000 (30 17:10 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 5 Jan 2010 00:22:25 +0000 (5 01:22 +0100)
treea0f9b8676670943b5e46aceb483dc1f5ab6bd307
parent3368871375619a4da06cafb2131b1d14996a8234
Fix sharing wizard page "Select Git Repository Location"

Enable selection of alternative repository mappings and highlight the selected
row fully. Selection was not possible since treeItem didn't show selectable text
in first column for alternative repository mappings (bug 296807).

Re-establish multi-selection by displaying most likely mapping on tree top level
and avoiding tree if only one git dir found (bug 297139).

Fix rendering of git directory in column Repository
  - on Windows the relative path was prefixed with the device name
    e.g. C:.git instead of .git
  - on Windows backslash was used as separator before .git
    which is inconsistent:
      e.g. src/org\.git instead of src/org/.git

Bug: 296807, 297139
Change-Id: Ie64d9e82609a62e4a117ed9e35156837b5d7b5b2
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
org.eclipse.egit.core/src/org/eclipse/egit/core/project/RepositoryMapping.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java