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 99176

Summary: Move a file from a project to its referenced project may cause unfixed "Broken reference"
Product: xml Reporter: _ hong_lin <hong_lin>
Component: Schema ToolsAssignee: pnarayan <pnarayan>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ hong_lin 2007-03-27 19:54:37 UTC
Build: Hula build (daily-200703220921)
 
Steps to reproduce it:
1. ProjectA reference ProjectB.
2. A1.xsd and A2.xsd are in ProjectA. A2.xsd is a referenced schema to A1.xsd.
3. Move A1.xsd from ProjectA to ProjectB.
4. Open A1.xsd in ProjectB, expand "Referenced Schemas", select "import
{http://.../A2.xsd", will see "Broken reference" in the third column in the XML
Schema Editor.
5. This "Broken reference" can not be customized, because if ProjectA reference
ProjectB, then ProjectB can not reference ProjectA. 

Is there a way to prevent this kind of file moving? or give user a warning when
they try to move the file? Or give user a choise to undo the file moving?