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
if (fields.length == 0)
			return new IContributionItem[0];
		IContributionItem[] items = new IContributionItem[fields.length];
		for (int i = 0; i < items.length; i++) {
			items[i] = getContributionItem(fields[i]);
		}
		return items;
	}
	/**
	 * Return the IContributionItem for field.
	 * 
	 * @param field
	 * @return IContributionItem
	 */
	private IContributionItem getContributionItem(final MarkerField field) {
		return new ContributionItem() {
			/*
			 * (non-Javadoc)
			 * 
			 * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Menu,
			 *      int)
			 */
			public void fill(Menu menu, int index) {
				MenuItem item = new MenuItem(menu, SWT.RADIO);
				String title = field.getColumnHeaderText();
				if (title.length() == 0)
					title = field.getColumnTooltipText();
				item.setText(title);
				ExtendedMarkersView view = getView();
				item.addListener(SWT.Selection,