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 129558

Summary: Use MIME lookup to register navigator panels
Product: platform Reporter: Andrei Badea <abadea>
Component: NavigatorAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: blocker CC: crazyjavahacking, markiewb
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 206954    

Description Andrei Badea 2008-03-07 16:01:30 UTC
Currently, in order to provide the default XML navigator for files whose MIME types end in +xml (such as
text/x-springconfig+xml) one has to explicitly register org.netbeans.modules.xml.text.navigator.XMLNavigatorPanel for
that MIME type. The navigator support does not infer to use the navigator for text/xml if a navigator is not registered
for the more specific MIME type. There are quite many files using the +xml suffix, and all of them need to have this
dependency on xml.text.

Ways to address include adding special support to core/navigator for handling the XML MIME types, or providing an API in
xml.text to return the default XML navigator.

However, there is already support in the IDE for infering text/xml from a "+xml" MIME type: the MIME lookup. The
navigator support could either use the editor MIME lookup (over the Editors folder), or have it own MIME lookup over the
current Navigator folder.
Comment 1 Jesse Glick 2012-01-05 20:05:40 UTC
*** Bug 206587 has been marked as a duplicate of this bug. ***
Comment 2 Jesse Glick 2012-01-05 20:05:48 UTC
*** Bug 206959 has been marked as a duplicate of this bug. ***
Comment 3 markiewb 2012-09-22 21:25:59 UTC
*** Bug 216982 has been marked as a duplicate of this bug. ***