Bug 213168 [Markers] problems view: polish sort menu
3.4 M4 - open the problems view - open the view menu The menu has two entries: - By column (sub menu) - Ascending (radio) a. Ascending should either be a check box or a second radio option 'Descending' should be added b. It might be more comfortable for users to not have a 'By Column' but have this entries directly below 'Sort' (separated with a separator from 'Ascending' and 'Descending') (not sure if SWT allow to have two separate radio groups in the same menu)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/SortFieldContribution.java
getMenuItemListener(field, view));
				if (view != null)
					item.setSelection(view.isPrimarySortField(field));
			}
			/**
			 * Return the menu item listener for selection of a field.
			 * 
			 * @param field
			 * @param view
			 * @return Listener
			 */
			private Listener getMenuItemListener(final MarkerField field,
					final ExtendedMarkersView view) {
				return new Listener() {
					/*
					 * (non-Javadoc)
					 * 
					 * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
					 */
					public void handleEvent(Event event) {
						MenuItem item = (MenuItem) event.widget;
						if (item.getSelection() && view != null)
							view.setPrimarySortField(field);
					}
				};
			}
		};
	}
}