Community
Participate
Working Groups
In the insert element popup (opened when hitting [Ctrl]-[Space]), the candidates that start with the given search term should be sorted to the top of the list. Example: (Is) A search for "para" in DocBook results in the following list: "formalpara, para, simplepara". Hitting [Return] will insert "formalpara", although it is more likely that the user wants to insert a "para" element. (Should) The list should be sorted in the following way: "para, formalpara, simplepara". Hitting [Return] will insert "para". If the user wants to insert one of the other candidates, she has to select the desired candidate with the up/down keys or using the mouse.
Implementation hint: the candidates get computed and sorted in org.eclipse.vex.core.internal.widget.VexWidgetImpl.getValidInsertElements()
Works fine.