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 117649

Summary: Need to reopen schema file to reflect actual reference state.
Product: xml Reporter: Michael Nazarov <michaelnazarov>
Component: Schema ToolsAssignee: Sonali Kochar <sonali>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description Michael Nazarov 2007-10-03 15:29:27 UTC
Product Version: NetBeans IDE Dev (Build 200710030000)
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Steps to reproduce:

1. Create sample BluePrint1 (Sample) and BPEL module (Module).
2. Add to module sample loan xml schema.
3. Add to Sample reference to Module.
4. Open purchaseOrder and add reference to newLoanApplicatiob schema from Module.
5. Remove reference from Sample to Module. Note there is warning.
6. --> In XML editor reference to loan schema still valid. But if you try to add new Attribute (or other element)
reference will be reported as broken.
7. Reopen purchaseOrder to view broken reference report.
8. Add to Sample reference to Module.
9. --> Now reference still shows as broken. If you'll try to customize you'll see error: already referenced.
10. Reopen purchaseOrder again to remove broken reference report.
Comment 1 Sonali Kochar 2007-10-09 16:13:59 UTC
Currently there is no framework in place to listen to Project reference delete events. As a result the schema model
doesn't automatically refresh itself when a project reference is deleted. Same issue when a schema file referenced by
another is deleted. The referencing schema doesn't listen to file delete events and will not refresh. It has to be
opened to reflect the actual state. We need to enhance the schema model factory to listen to these events and update the
schemas. This cannot be done at this time and will be addressed after 6.0