summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorKevin Sawicki2011-05-04 15:35:01 (EDT)
committer Kevin Sawicki2011-05-04 15:35:01 (EDT)
commita467c56b9e1c6e704b1084eb6b31db42e6e3b94d (patch)
tree6a7e3e8d03a30ad4e0ffb4f4753bd9b3c4547bb8
parent6928f4dc0392113c90d0ca2446d016a75e512ded (diff)
downloadegit-a467c56b9e1c6e704b1084eb6b31db42e6e3b94d.zip
egit-a467c56b9e1c6e704b1084eb6b31db42e6e3b94d.tar.gz
egit-a467c56b9e1c6e704b1084eb6b31db42e6e3b94d.tar.bz2
Select commit when initially expanded and tag selected.refs/changes/32/3332/1
Change-Id: If8ece45b08660450e76bfea7781b789e4507209c Signed-off-by: Kevin Sawicki <kevin@github.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateTagDialog.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateTagDialog.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateTagDialog.java
index beab7ce..541fb1b 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateTagDialog.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CreateTagDialog.java
@@ -520,6 +520,10 @@ public class CreateTagDialog extends TitleAreaDialog {
}
for (RevCommit revCommit : commits)
commitCombo.add(revCommit);
+
+ // Set combo selection if a tag is selected
+ if (tag != null)
+ commitCombo.setSelectedElement(tag.getObject());
}
composite.layout(true);
}