Fix node selection in AbstractBranchSelectionDialog
commit2428b1cab84530e94196e1dfc51e38cb0a3e5ae8
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 10 May 2017 13:36:27 +0000 (10 15:36 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 10 May 2017 13:40:31 +0000 (10 15:40 +0200)
treefbe462d383bb10f5f681cc1e934d9aebb27dd946
parent8e5b16f49503e5799d42bba1f2f2b0247cc6e0ee
Fix node selection in AbstractBranchSelectionDialog

Depending on the mode of the content provider (hierarchical
or not) we need to create nodes differently in order to
successfully pre-select a tree item.

Bug: 516411
Change-Id: I5319bb8fdeececb81a3aa51cf1b0faab454eabbf
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewBranchHandlingTest.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/AbstractBranchSelectionDialog.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/RepositoriesViewContentProvider.java