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 202900 - ~/.m2/settings.xml opened improperly
Summary: ~/.m2/settings.xml opened improperly
Status: RESOLVED DUPLICATE of bug 202766
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.1
Hardware: PC Linux
: P1 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
Depends on:
Blocks: 202429
  Show dependency tree
 
Reported: 2011-09-30 16:26 UTC by Jesse Glick
Modified: 2011-10-20 14:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-09-30 16:26:24 UTC
20110929-99f6dbaa0c84. When settings.xml is opened, only a History tab is displayed, no Source tab. Other XML files appear OK.
Comment 1 Jesse Glick 2011-09-30 16:30:28 UTC
Regression since the beta. I am guessing the fix of bug #202429 is responsible.
Comment 2 Jesse Glick 2011-09-30 16:33:30 UTC
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.
Comment 3 Svata Dedic 2011-09-30 17:37:35 UTC
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 ***
Comment 4 Jesse Glick 2011-09-30 17:56:48 UTC
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.
Comment 5 Svata Dedic 2011-09-30 18:32:30 UTC
please change the preferredID to "xml.text" so XMLDO recognizes the MultiviewDescription as 'source text'.
Comment 6 Quality Engineering 2011-10-01 14:06:10 UTC
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).
Comment 7 Jesse Glick 2011-10-13 19:10:27 UTC
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).
Comment 8 Quality Engineering 2011-10-20 14:25:27 UTC
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.