Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 53970

Summary: [Widgets] Right click on folder in FileDialog and DirectoryDialog
Product: [Eclipse Project] Platform Reporter: Julien Ruaux <jruaux>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact: Grant Gayed <grant_gayed>
Severity: normal    
Priority: P3 CC: isobe, robert.boctor
Version: 3.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug
Attachments:
Description Flags
console log when exception occurred none

Description Julien Ruaux CLA 2004-03-06 10:23:19 EST
When right clicking on a folder in a FileDialog the application terminates 
without any error message.


The following code, taken from :

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-
home/snippits/snippet72.html

 will reproduce the bug :
	public static void main (String [] args) {
		Display display = new Display ();
		Shell shell = new Shell (display);
		shell.open ();
		FileDialog dialog = new FileDialog (shell, SWT.SAVE);
		dialog.setFilterNames (new String [] {"Batch Files", "All 
Files (*.*)"});
		dialog.setFilterExtensions (new String [] 
{"*.bat", "*.*"}); //Windows wild cards
		dialog.setFilterPath ("c:\\"); //Windows path
		dialog.setFileName ("fred.bat");
		dialog.open ();
		while (!shell.isDisposed ()) {
			if (!display.readAndDispatch ()) display.sleep ();
		}
		display.dispose ();
	}
Comment 1 Grant Gayed CLA 2004-03-08 10:45:55 EST
This works fine for me with both win2k and winXP.

Try invoking the Save As... dialog in Notepad and report here whether it works 
or not.  It has been suggested that your regisry may be in a bad state, which 
would break the native file dialog everywhere.
Comment 2 Ryuichiro Isobe CLA 2004-03-10 20:45:13 EST
I could reproduce this problem.

In 3.0M7 with Win2K,
File -> Open external File -> right click on file item.
Eclipse terminates.

This problem was generated not only in native file dialog
but in other JFace dialog.
File -> Import -> Existing Project into Workspace -> Next -> Browse.

In other native application(notepad.exe...),
Dialog works fine.
Comment 3 Ryuichiro Isobe CLA 2004-03-10 21:31:58 EST
Created attachment 8486 [details]
console log when exception occurred
Comment 4 Grant Gayed CLA 2004-09-09 14:18:19 EDT
*** Bug 73543 has been marked as a duplicate of this bug. ***
Comment 5 Grant Gayed CLA 2009-08-27 14:43:27 EDT
Moving report to triage, see http://www.eclipse.org/swt/triage.php
for swt bug handling process.
Comment 6 Leo Ufimtsev CLA 2017-08-03 12:26:48 EDT
This is a one-off bulk update. (The last one in the triage migration).

Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process:
https://wiki.eclipse.org/SWT/Devel/Triage

See Bug 518478 for details.

Tag for notification/mail filters:
@TriageBulkUpdate
Comment 7 Eclipse Genie CLA 2020-04-06 04:06:16 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.