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 123001 - Elements not updated after removing schema reference
Summary: Elements not updated after removing schema reference
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 18:48 UTC by tonybeckham
Modified: 2008-07-22 18:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2007-11-28 18:49:00 UTC
Problem:
If an element is of a type from a referenced schema then that reference is removed, the element remains of the type.

Steps:
1. Create loan sample schema
2. Create a new schema
3. Import loan schema to newSchema
4. In newSchema, (schema view) add a new element of referenced type.  Select some type from referenced load schema.
5. Remove imported loan schema
6. The type of the added element remains, you can check in source view that type="ns0:LoanType" although ns0 does not
exist anymore.
7. Also, schema view retains all the child nodes for the new element even after the removal of the import.  This can be
resolved by closing and reopening the schema but the type remains.

System:
Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)
Comment 1 Samaresh Panda 2007-11-29 00:04:46 UTC
Most likely we have this as a bug/enhancement. Sonali, can you pl. confirm?
Comment 2 Sonali Kochar 2008-07-22 18:19:09 UTC
This is an enhancement. Please also see issue 117649
http://www.netbeans.org/issues/show_bug.cgi?id=117649