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/SortDirectionContribution.java
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/
package org.eclipse.ui.internal.views.markers;
import org.eclipse.jface.action.ContributionItem;
import org.eclipse.jface.action.IContributionItem;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.ui.views.markers.internal.MarkerMessages;
/**
 * SortDirectionContribution is the dynamic contribution for sort direction.
 * 
 * @since 3.4
 * 
 */
public class SortDirectionContribution extends MarkersContribution {