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 113559

Summary: deprecate creation of non-editable ModelSource APIs
Product: xml Reporter: Samaresh Panda <samaresh>
Component: XAMAssignee: Samaresh Panda <samaresh>
Status: NEW ---    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Samaresh Panda 2007-08-23 00:03:39 UTC
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
Comment 1 Martin Grebac 2007-08-23 11:11:18 UTC
I think this is a very important enhancement, because without it, the api leads to incorrect usages and subsequent
exceptions, thus raising priority.