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 boolean "editable" in the creation of ModelSource is confusing and creates more problems to the consumers of this API. It should get removed from the APIs and instead the tool will create RO models when appropriate. All the ModelSource will be created as editable=true for consumers. There are certain use-cases when the retriever code will create ModelSource internally as Read-Only. The following APIs will get deprecated. class: org.netbeans.modules.xml.xam.ModelSource public ModelSource(Lookup lookup) //remove editable class: org.netbeans.modules.xml.retriever.catalog.Utilities public static ModelSource getModelSource(FileObject bindingHandlerFO) //remove editable public static ModelSource createModelSource(FileObject thisFileObj) throws CatalogModelException //remove editable
I think this is a very important enhancement, because without it, the api leads to incorrect usages and subsequent exceptions, thus raising priority.