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 58676 - Cannot add OASIS catalog programmatically by layer
Summary: Cannot add OASIS catalog programmatically by layer
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Catalog (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
Keywords: API
Depends on:
Blocks: 33232
  Show dependency tree
Reported: 2005-05-09 02:12 UTC by santhosh
Modified: 2007-09-25 01:30 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description santhosh 2005-05-09 02:12:20 UTC
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.

  xml-catalog module should define dataloaders for oasis, xcatalog files.
  this dataloader should create a dataobject which cantains CatalogReader 

  then other modules can just simply add their catalog files to 
  Plugins/XML/UserCatalogs by layer file. rest of the work is done by

  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)
Comment 1 Jesse Glick 2005-05-09 19:46:35 UTC
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.
Comment 2 santhosh 2005-05-10 06:14:06 UTC
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 

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.
Comment 3 Jesse Glick 2005-05-10 17:23:11 UTC
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.