Project: SWT
Bug 258391 When model dialog is up, its parent window should not response to drop event.
Reported: 2008-12-11 01:30:01 | Status: resolved fixed

Build ID: I20080617-2000 Steps To Reproduce: 1.Launch Eclipse. 2.Open a model dialog, such as open preference dialog from File | Preferences; or file open dialog from File | Open File. 3.Drag a simple text file, such as 1.txt, and drop to Eclipse Editor area. Problem is 1.txt is opened. We expect perference dialog and file open dialog are model dialogs, and when model dialog appears, the parent window should not response to drop event, so dropped document could not be opened in Eclipse. More information:

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ColorDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FontDialog.java