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 145672 - New File Type Wizard does not register DataObjects correctly
Summary: New File Type Wizard does not register DataObjects correctly
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 10:33 UTC by vieiro
Modified: 2008-12-22 14:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple suite for testing (jar packaged) (13.28 KB, application/octet-stream)
2008-08-30 10:35 UTC, vieiro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vieiro 2008-08-30 10:33:53 UTC
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.
Comment 1 vieiro 2008-08-30 10:35:20 UTC
Created attachment 68699 [details]
Simple suite for testing (jar packaged)
Comment 2 rmichalsky 2008-09-01 09:35:26 UTC
Data loader and MIME resolver seem to be created correctly by New File Type Wizard. Problem in datasystem or nodes?
Comment 3 Jaroslav Tulach 2008-09-01 15:58:25 UTC
True, the behaviour is broken.
Comment 4 Jaroslav Tulach 2008-09-01 16:46:36 UTC
e45756bc40c9
Comment 5 vieiro 2008-09-01 18:23:15 UTC
Impressive, thanks!
Comment 6 Quality Engineering 2008-09-02 17:25:20 UTC
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
Comment 7 vieiro 2008-09-03 07:47:33 UTC
Perfect, thanks. It works like a charm.
Comment 8 Lukas Hasik 2008-09-03 09:42:03 UTC
"Perfect, thanks. It works like a charm." -> then marking as verified