mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ui: fixate order of actions with same text/description in "Find Action"
This commit is contained in:
@@ -502,6 +502,10 @@ public class GotoActionModel implements ChooseByNameModel, Comparator<Object>, D
|
||||
if (byGroup != 0) return byGroup;
|
||||
int byDesc = StringUtil.compare(myPresentation.getDescription(), oPresentation.getDescription(), true);
|
||||
if (byDesc != 0) return byDesc;
|
||||
int byClassHashCode = Comparing.compare(myAction.getClass().hashCode(), o.myAction.getClass().hashCode());
|
||||
if (byClassHashCode != 0) return byClassHashCode;
|
||||
int byInstanceHashCode = Comparing.compare(myAction.hashCode(), o.myAction.hashCode());
|
||||
if (byInstanceHashCode != 0) return byInstanceHashCode;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user