I am creating a ProblemDescriptor using com.intellij.codeInspection.InspectionManager#createProblemDescriptor(PsiElement psiElement, java.lang.String descriptionTemplate, LocalQuickFix fixes, ProblemHighlightType highlightType) method. In IDEA 6.x I sorted array of fixes in the order I need and they appeared in this order in context menu. However in IDEA 7.0.2 they seem to be always sorted alphabetically by name. This happens even my implementation of LocalQuickFix implements Comparable]]>.
This is an annoyance for me because the order I use is based on similarity between the erroneous string and proposed. For instance if misspelled property is "hopital" and class has properties named "address", "dob", "hospital", "name", "speciality" then "hospital" is a top choice for me but in alphabetical order it appears only the third.
Anybody knows how I can make fixes appear in a defined order?