Bug 113338 [sort members] Usability improvements of sort members action
I20051018-0932 + ZRH plugin export from 20051021 - The sort members action unnecessarily shows a dialog prompting whether to sort fields as well or not. This seems interrupting and more or less useless, as it resembles more a preference, which is set once and left untouched. A better solution could be a MessageDialogWithToggle to attract the users attention to the potentially arising problems when sorting fields and guiding her to the members sort order preference page where she can configure the desired behavior - Invoking sort members on a type with less than 2 members pops up a dialog telling that there were not enough members to sort. This is interrupting and unnecessary as well IMHO.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/OptionalMessageDialog.java
/*******************************************************************************
 * Copyright (c) 2000, 2005 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.jdt.internal.ui.dialogs;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;