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.
Up until now there is not an useful UI, which allows to say to NetBeans that files with certain extension should be treat as files with a mimetype. For example, almost every PHP framework use a files with different extensions. There has to be a simple way to say this files will be PHP files. The current solution with editing mime resolver and restarting ide is not sufficient, is nonintuitive and also danger.
Please, add to this the possibility to define default extension. Default extension is used when user create something from template. I.e. C++ users have different extension for their source or header files, so: 1) extensions are configurable 2) using New File template user would like to see file created with preferred (set once as default) extension 3) in case of "New C++ Class" template two files should be generated: source and header. And user expects to have correct extensions for both as well
Since the default extension does not frequently change over time, it should be "remembered" automatically, without user having to configure it. I've checked the Empty C File Wizard and it does work like this, i.e. the extension is remembered and the same extension is offered the next time the wizard is started.
UI spec ready, see the URL field. Please raise concerns & feedback if any. If no, please close.
UI spec. moved to public URL.
So if I understand correctly from the Option dialog user can change the mimetype for already recognized files. For example if I want to open xml files in html editor. Is it right?
That's right.
LH1: I miss UI specification for the "New File Extension or Pattern" dialog that should open when you click on "New..." in File Association tab in Options
Thanks for notice, spec. updated.
LH2: another minor thing, when will be the Default button enabled, and what it will be good for? Let the spec be complex ;)
I thought I would describe detailed functionality in person on today's meeting, but alright .. spec updated ;)
Spec. is provided, linked from the URL field. It is now being implemented, closing this enhancement.
I would actually leave it open until it is really implemented and added to build. The spec itself is not enough.
Implementation is added in core-main repository. http://hg.netbeans.org/core-main/rev/82319770e503
*** Issue 105589 has been marked as a duplicate of this issue. ***
Great, thanks! However, I thought that the new UI would be a *replacement* for the "File Types" and "Object Types" categories in the advanced options. Right now I still see these in the Advanced options. Is there a plan to remove File Types and Object Types settings? Thanks.
Yes, I will remove it soon.
Integrated into 'main-golden', available in NB_Trunk_Production #272 build Changeset: http://hg.netbeans.org/main/rev/c2d1a4686344 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #133773 - Added display names of loaders to MIME types.
verified in M1
Integrated into 'main-golden', available in NB_Trunk_Production #295 build Changeset: http://hg.netbeans.org/main/rev/553d10a92e76 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #133773 - File Types and Object Types nodes removed from advanced options.