Project: JDT
Bug 171073 Remove information dialog when there are not enough members in type to sort
Reported: 2007-01-19 11:55:24 | Status: resolved fixed

When a selected compilation unit only has one field, or one method, choosing Source > Sort Members... results in the following dialog: Title: Sort Members Icon: Information Prompt: There are not enough members in this type to sort. Please remove this dialog, since it does not add anything that the user cares to know about. The fact that there is only one member means that the compilation unit is already sorted. A dialog is not displayed when the members of a compilation are already sorted, and therefore one should not be displayed when there is only one member. This dialog reduces the usability of Eclipse and annoys the user.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ActionMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SortMembersAction.java