mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
style: sort hg reference names in getNamesWithoutHashes, unnecessary ui model creation removed
This commit is contained in:
@@ -118,7 +118,6 @@ public class HgCommonDialogWithChoices extends DialogWrapper {
|
||||
private void updateRepository() {
|
||||
HgRepository repo = hgRepositorySelectorComponent.getRepository();
|
||||
branchSelector.setModel(new DefaultComboBoxModel(repo.getOpenedBranches().toArray()));
|
||||
tagSelector.setModel(new DefaultComboBoxModel(HgUtil.getNamesWithoutHashes(repo.getTags()).toArray()));
|
||||
DefaultComboBoxModel tagComboBoxModel = new DefaultComboBoxModel(HgUtil.getNamesWithoutHashes(repo.getTags()).toArray());
|
||||
tagComboBoxModel.addElement("tip"); //HgRepository does not store 'tip' tag because it is internal and not included in tags file
|
||||
tagSelector.setModel(tagComboBoxModel);
|
||||
|
||||
@@ -667,6 +667,7 @@ public abstract class HgUtil {
|
||||
names.add(hash.getName());
|
||||
}
|
||||
}
|
||||
Collections.sort(names);
|
||||
return names;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user