* [EGIT PATCH] Select and show a newly created branch in the checkout dialog
@ 2009-04-04 11:55 Robin Rosenberg
0 siblings, 0 replies; only message in thread
From: Robin Rosenberg @ 2009-04-04 11:55 UTC (permalink / raw)
To: spearce; +Cc: git, Robin Rosenberg
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
.../ui/internal/dialogs/BranchSelectionDialog.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java
index cbbc384..1866086 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/dialogs/BranchSelectionDialog.java
@@ -150,6 +150,7 @@ private void fillTreeWithBranches(String select) throws IOException {
TreeItem curSubItem = null;
String curPrefix = null;
String curSubPrefix = null;
+ TreeItem itemToSelect = null;
for (String ref : branches) {
String shortName = ref;
@@ -217,7 +218,12 @@ public void widgetDisposed(DisposeEvent e) {
}
else item.setText(shortName);
if (ref.equals(select))
- branchTree.select(item);
+ itemToSelect = item;
+ branchTree.setLinesVisible(true);
+ }
+ if (itemToSelect != null) {
+ branchTree.select(itemToSelect);
+ branchTree.showItem(itemToSelect);
}
}
--
1.6.2.1.345.g89fb
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-04 11:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-04 11:55 [EGIT PATCH] Select and show a newly created branch in the checkout dialog Robin Rosenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).