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.
Created attachment 111268 [details] Screenshot of wrong window opening when trying to edit server.xml I have a newly installed NetBeans daily built with bundled Glassfish and Tomcat. On the "Services" tab under "Servers", I remove the predefined Glassfish and Tomcat instances and create a new Tomcat instance (see bug reports 202564 and 202566). When I now right-click on the Tomcat instance and select "Edit server.xml" then the local history window opens. (see attached screenshot) Also, wenn I try to expand the tomcat instance (to see the configuration files), the no files are shown and the arrow to expand the instance vanishes.
Introduced by http://hg.netbeans.org/web-main/rev/f055a06ca829
Fixed - this is because the text multiview tab is attached to plain+xml only to prevent potentially incorrect registrations in more concrete subtypes. I added a backwards-compatible behaviour for files with only different MIME type but no specific data object. Please review and/or apply the attached patch; it adds multiview source tab registration to tomcat5 module, which overrides the compat behaviour.
Created attachment 111360 [details] patch for Tomcat5 module
I don't really understand (but I'm not a DO expert). Is the old behavior preserved? If so then I would not expect changes in Tomcat. If it is not it looks like incompatible change that may regress in many other places. Otherwise I don't have strong objections against the change in Tomcat code. I just worry about other regressions, possibly in code we do not own.
The old behaviour is preserved by my fix. However it was requested for this release that (ideally) all the editor panes support history (e.g. local history) - that's why XMLDO behaviour was changed originally. . Maybe the multiview request is not applicable to the Tomcat node - then pls. ignore the patch and close defect. If it's desirable to show multiview with source+history buttons for tomcat config, then review/apply patch. Sorry for previous short explanation
Fixed in web-main b84777833e9e.
*** Bug 202900 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/56825855b1ee User: Svata Dedic <sdedic@netbeans.org> Log: #202766: if the file has compoung xx+xml MIME, but no specific DataObject, fall back to the non-multiview behaviour so text editor is shown.