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.
20110929-99f6dbaa0c84. When settings.xml is opened, only a History tab is displayed, no Source tab. Other XML files appear OK.
Regression since the beta. I am guessing the fix of bug #202429 is responsible.
Note that settings.xml has a MIME type of text/x-maven-settings+xml, but there is no dedicated DataObject subclass; none is needed. (All special functions are handled by MIME-based editor registrations.) Compare POMDataObject, which is needed to create an editor with a custom messageName.
Already discovered independently as #202766. I made a compatible provision for DataObject-less (using XMLDO) files - if no specific source editor multiview is discovered, the old behaviour with just the source text editor is used. I didn't discover a way how to make a 'fallback' entry in the Lookup and don't want to mess with MimeLookup internals before release. Suggestions are welcome. *** This bug has been marked as a duplicate of bug 202766 ***
OK I think. I already pushed core-main #e5e277bfee50 as a hot fix (since I expected you would not still be at work) which just registers the multiview editor for settings.xml. This appears to work; I hope that will interact cleanly with web-main #b84777833e9e. Review would be appreciated.
please change the preferredID to "xml.text" so XMLDO recognizes the MultiviewDescription as 'source text'.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/e5e277bfee50 User: Jesse Glick <jglick@netbeans.org> Log: #202900 workaround (broken settings.xml display).
This is still not working properly in dev builds. ~/.m2/settings.xml source is displayed with no history tab; also, Ctrl-S sometimes does not work (not sure how to reproduce).
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ddd22cbe710d User: Jesse Glick <jglick@netbeans.org> Log: Missed bug #202900 comment #5 before. Now Local History tab and Save work for settings.xml.