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.
Short description: The "New File Type" wizard does not register new file types correctly. Newly created files are not recognized correctly, existing files are recognized correctly. How to reproduce: - Create a Suite. Create a Module. Add a "New File Type" (say "Tests", "text/x-test", ".test", choose an icon) to your module. - Run the suite. - In the new running IDE, choose "File New"/"Other"/"New Test file", enter a name, press enter. - The file is created, but the IDE does not recognize its type (to verify simply see that it has no icon, or choose "Properties" on the file and see that at the bottom of the "Properties" window it says "Unrecognized File". - Close the new running IDE. Run again the suite: the *existing* file is then correctly recognized. Test environment: Product Version: NetBeans IDE 6.5 Beta (Build 200808111757) Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22 System: Linux version 2.6.24-16-generic running on i386; UTF-8; es_ES (nb) Userdir: /home/antonio/.netbeans/6.5beta I am attaching a jar-ed version of a sample suite project with a new file type ("text/x-test", ".test"). I'm adding this as P1 priority as it will affect people building applications on top of the NetBeans Platform, and I don't know if this affects also the IDE.
Created attachment 68699 [details] Simple suite for testing (jar packaged)
Data loader and MIME resolver seem to be created correctly by New File Type Wizard. Problem in datasystem or nodes?
True, the behaviour is broken.
e45756bc40c9
Impressive, thanks!
Integrated into 'main-golden', will be available in build *200809021401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e45756bc40c9 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #145672: copy, createFromTemplate was broken for DataLoaderPool.factory objects
Perfect, thanks. It works like a charm.
"Perfect, thanks. It works like a charm." -> then marking as verified