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 158647 - PropertiesDataLoader doesn't recognize other extension than .properties
Summary: PropertiesDataLoader doesn't recognize other extension than .properties
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 08:36 UTC by Jiri Skrivanek
Modified: 2009-02-26 10:45 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch (9.62 KB, text/plain)
2009-02-19 09:17 UTC, Alexey Butenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2009-02-17 08:36:44 UTC
It seems PropertiesDataLoader only recognizes files with .properties extension and ignores other files with associted
text/x-properties MIME type. To reproduce:

- create new file myprop.abc (Other>Empty File)
- open Tools>Options>Miscellaneous>Files
- click New button
- type abc and confirm
- from MIME type combo box select "Properties Files (text/x-properties)"
- click OK button
- it should change icon of myprop.abc to icon of properties files and if you open myprop.abc in editor, it should be
recognized as property file.
Comment 1 Alexey Butenko 2009-02-17 08:59:39 UTC
I'm added case which check that extension is .properties.
So probably it should be removed.
Comment 2 Alexey Butenko 2009-02-17 10:09:35 UTC
The problem is more complicated, because PropertiesDataLoader doesn't never knows that new extension was added.
Comment 3 Alexey Butenko 2009-02-19 09:17:26 UTC
Created attachment 77136 [details]
patch
Comment 4 Alexey Butenko 2009-02-19 09:23:51 UTC
changeset 8edc317f2c68
Comment 5 Jiri Skrivanek 2009-02-26 10:45:53 UTC
Verified.