Bug 175545 [Dialogs] Dialog: impossible to turn off double-click resizing
Since 3.2. a double click in a dialog will resize the dialog to its computed size. In our RCP app we have some dialogs with tables consisting many columns, the resulting dialog width is really large. Now if you resize the dialog to be smaller our dialogs will memory that size permanently. But if you double click into the table the dialog pops up to its full size. That's really annoying ... Please provide a possibility to turn that "double click resizing" *off*.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
/*******************************************************************************
 * Copyright (c) 2000, 2006 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
 *     Matt McCutchen <hashproduct+eclipse@gmail.com> - Fix for bug 162124 
 *      [Dialogs] Double click to resize dialog should be tray-aware
 *******************************************************************************/
package org.eclipse.jface.dialogs;
import java.util.Arrays;
import java.util.HashMap;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.jface.util.Policy;
import org.eclipse.jface.window.IShellProvider;
import org.eclipse.jface.window.SameShellProvider;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Font;