This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 129956

Summary: Export Diff Patch: Used OpenFileDialog instead of SaveFileDialog
Product: versioncontrol Reporter: Petr Dvorak <joshis>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: There is no field to type a filename in the Export Diff Patch dialog
proposed patch

Description Petr Dvorak 2008-03-12 20:28:50 UTC
Product Version: NetBeans IDE Dev (Build 200803111205)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)

This is a MacOS specific issue (in essence the same issue as http://www.netbeans.org/issues/show_bug.cgi?id=129745).

Open some project that is using hg. Go to Versioning > Mercurial > Export diff patch, click Browse... button by the Output File field.

You cannot type a new filename anywhere, you have to either overwrite existing file, or click cancel (and so you cannot easily specify a new location for a 
new file).

An OpenFileDialog is used instead a SaveFileDialog.
Comment 1 Petr Dvorak 2008-03-12 20:29:50 UTC
Created attachment 58268 [details]
There is no field to type a filename in the Export Diff Patch dialog
Comment 2 Padraig Obriain 2008-03-13 09:23:32 UTC
I think that we need to add the statement

        fileChooser.setDialogType(JFileChooser.SAVE_DIALOG);
Comment 3 Padraig Obriain 2008-03-13 10:31:54 UTC
Created attachment 58298 [details]
proposed patch
Comment 4 Padraig Obriain 2008-03-13 10:33:13 UTC
Patch pushed in 11b48d2ad0bb.
Comment 5 Petr Dvorak 2008-09-17 13:06:44 UTC
Verified.