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 118426

Summary: NPE from GsfDataObject when extending mime-types
Product: ruby Reporter: Martin Krauskopf <mkrauskopf>
Component: CodeAssignee: Torbjorn Norbye <tor>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Krauskopf 2007-10-10 18:19:05 UTC
1) Tools -> Options -> Advanced Options -> IDE Configuration -> System -> Object Types -> Source files for RHTML, Ruby
2) Add e.g. _c_ extension there.
3) New File -> Other -> Emtpy file
4) Create new hello.c

NPE is thrown and the same whenever you touch the ahoj.c's node.
Comment 1 Torbjorn Norbye 2007-10-10 19:05:52 UTC
This is a duplicate of 116563.

Basically "extending mime-types" is what you want, but that's now that IDE Configuration > System > Object Types does.
See 116563 for details.

To solve this we need to make the RubyMimeResolver configurable - or for 6.0 perhaps it would be better to write a
separate module: configure-mimetypes. This would register a mime resolver class that has a set of known extensions and
maps them to known mimetypes - and would offer an options panel to customize the extensions and mimetypes. 

There is nothing Ruby specific about this and should be a core service of the IDE...


*** This issue has been marked as a duplicate of 116563 ***
Comment 2 Martin Krauskopf 2007-10-10 19:17:15 UTC
.