IDEA-250748 [git] Git merge dialog: re-select field text after options update

GitOrigin-RevId: f7aff7507701e8202789ad6c7d6e88acbd2d41f3
This commit is contained in:
Daniil Tsaryov
2020-12-16 15:26:16 +00:00
committed by intellij-monorepo-bot
parent 6ab711e7f7
commit 97586f00b7
2 changed files with 5 additions and 0 deletions
@@ -240,6 +240,7 @@ class GitMergeDialog(private val project: Project,
}
branchField.item = branchToSelect
branchField.selectAll()
}
private fun splitAndSortBranches(branches: List<@NlsSafe String>): List<@NlsSafe String> {
@@ -76,6 +76,10 @@ class ComboBoxWithAutoCompletion<E>(model: ComboBoxModel<E>,
}
}
fun selectAll() {
myEditableComponent?.selectAll()
}
private fun initEditor() {
val editableComponent = createEditableComponent()