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.
the xml-catalog module has catalog resolver implementations for oasis, xcatalog modules. it allows user to mount oasis catalog from userinterface. but the same can't be done programatically using layer file. the oasis, xcatalog implemenations are not in public packages. Ideally: xml-catalog module should define dataloaders for oasis, xcatalog files. this dataloader should create a dataobject which cantains CatalogReader InstanceCookie. then other modules can just simply add their catalog files to Plugins/XML/UserCatalogs by layer file. rest of the work is done by dataloaders. i am writing a number of moudles which introduces different xml files into netbeans. it is very irritating to write CatalogReader implemetation class in each of these modules (it is copy/paste and change constants)
Would also be useful for apisupport and maybe project system. Proposed API does not look good to me, though. Suggest just public factory methods for creating a CatalogReader from various well-known sources.
I feel the approach of DataLoaders & DataObjects is better than factory approach. Because I found an issue which says "there is no support for editing mounted catalogs". if we use DataLoaders & DataObject, later we can plug in our DataNode and some MultiView implementations which will ease the editing of catalogs in netbeans.
You don't really edit the catalog mount; you edit the file the mount refers to. That does not require a specialized data loader for it AFAIK; would require some kind of addition to the catalog SPI to permit an impl to supply an "Edit" command. Possibly related: issue #27942.