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 219555 - Open file dialog and add item dialog on mac does not have file text edit box like Linux and Windows
Summary: Open file dialog and add item dialog on mac does not have file text edit box ...
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1.2
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on: 82821
Blocks:
  Show dependency tree
 
Reported: 2012-10-04 20:47 UTC by vincesheard
Modified: 2012-11-30 02:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shots (284.84 KB, application/x-zip-compressed)
2012-10-04 20:47 UTC, vincesheard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vincesheard 2012-10-04 20:47:14 UTC
Created attachment 125411 [details]
Screen shots

The Mac file chooser is different and inconsistent with each other than Windows and Linux. 
Under mac there is no where to type the file name in the dialog box, for Add item to project or open File from the file menu.
Unlike choosing a compiler there is a file text box.
See screen shots attached.
Windows Open file dialog has a file name text box (picture)
Windows Add item dialog has a file name text box  (picture)
Mac Add item dialog has no file name text box (picture)
Mac open File dialog has no file name text box  (NO picture)
Mac add compiler dialog has a file name text box (picture)
Comment 1 Stanislav Aubrecht 2012-10-08 08:24:40 UTC
Please file issue(s) against the module(s) that use the file browser window.
Comment 2 vincesheard 2012-10-08 16:18:41 UTC
It was filed under IDE because it is under the main File open menu or Project context Add item menu. This was then moved to the platform. I am not sure what module this would go under that is why I stated at the IDE.
Comment 3 Stanislav Aubrecht 2012-10-09 08:23:39 UTC
This issue has nothing to do with the generic Dialog support API. Marian, please reassign to correct module, I have no idea which module is creating those file choosers, thanks.
Comment 4 Jan Pirek 2012-10-10 08:17:42 UTC
 I have no idea where this belongs to
Comment 5 Petr Somol 2012-10-24 08:17:46 UTC
vincesheard, I need to figure out the context in which you use NetBeans. Are you using it for C/C++ development ? In your screenshots I see .c files, so I am reassigning to C/C++ NB support.

Remark: Not too long ago we have had discussions about whether to prefer native FileChooser dialogs on Mac where applicable or not, weighing the trade off between the natural look of the Mac dialog and the extended functionality of the NB one. However I am not sure whether this applies here. But you can take a look at Issue #82821
Comment 6 vincesheard 2012-10-24 14:47:46 UTC
We use it under our IDE MPLAB X which is based on the C/C++ platform of 6.91 right now. This is used for C/C++ development only. However we develop the IDE using the Netbeasn java side 7.2. In comparing both language support frameworks they are the same which means both project types use the same file choosers at this time. It is not strictly tied to the C/C++ development.
Comment 7 Maria Tishkova 2012-11-22 10:52:12 UTC
Hi,

 I have looked at the problem and here is what I have found:

   We use standard java FileChooser for AddItem so the problem is in Java Look and Feel implementation of FileChooser for MacOS  for FILES_ONLY mode. So when you select directory the NB implementation works and you can see input text field.

It is not quite clear what result you would like to achieve. If you just want your file chooser would be consistent with each other on one platform or you would like they be consistent in all platforms... 

  I have found several approaches you can use:

1. Use Java Metal look and Feel
       you will see the file dialogs the same way you see them on Windows. You can edit /Applications/<Netbans_Version>.app/Contents/Resources/NetBeans/etc/netbeans.conf
so that the line beginning netbeans_default_options includes the option:
  --laf javax.swing.plaf.metal.MetalLookAndFeel

or just use it when you run netbeans from the command line

2. Use native MacOS file choosers in the NetBeans
       It means there will be no input text field in any of your file choosers in NetBeans. Use -J-Dnb.native.filechooser=true from command line. Or you can go to NetBeans Preferenses -> Miscellaneous->Windows and check on "Maximize use of native look and feel "check box 


To support nb.native.filechooser in cnd I hav added fix
http://hg.netbeans.org/cnd-main/rev/1105e678d393



Thanks,
Maria
Comment 8 Quality Engineering 2012-11-30 02:37:37 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1105e678d393
User: Maria Tishkova <mromashova@netbeans.org>
Log: to support nb.native.filechooser  option (Options->Miscellaneous->Windows check box "Maximize use of native look and feel " (see bz#82821 - Choose file dialog is not Mac native and bz#219555 - Open file dialog and add item dialog on mac does not have file text edit box like Linux and Windows for more details)