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.
Using ent_pack-gavotte-070124_8.zip on top of netbeans-5_5_1-daily-bin-200701170600-windows-17_Jan_2007_0600.exe 1. Add Loan App sample schema. 2. In Schema view, select Elements node. 3. Press CTRL+F to open Find bar. 4. In the Find box, click the magnifying glass icon and select Search Selection. 5. In the Find box, type year and press Enter. --> Notice how the IDE says it's found 2 occurrences: year in CarType (which is in Complex Types) and years in DurationType (which is also in Complex Types) Since I have the Elements node selected, I should have gotten a "no matches found" result. Another scenario: 1. Click Clear in the Find bar to reset criteria. 2. In Schema view, select Simple Types node. 3. In the Find box, click the magnifying glass icon and make sure Search Selection is still toggled on. 4. In the Find box, type autoLoanApplication and press Enter. --> Notice how the IDE says it's found 1 occurrence: the global element definition under Elements. Since I selected the Simple Types node, I should have gotten a "no matches found" result.
The problem was in selecting a category (folder) node. It is not a component node, so the search was defaulting to searching from the root. Fixed both schema and WSDL editors in release551 branch. schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/search/AttributeNameSearchProvider.java; new revision: 1.1.2.8.12.2; previous revision: 1.1.2.8.12.1 schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/search/AttributeValueSearchProvider.java; new revision: 1.1.2.8.12.2; previous revision: 1.1.2.8.12.1 schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/search/ComponentNameSearchProvider.java; new revision: 1.1.2.8.12.2; previous revision: 1.1.2.8.12.1 schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/search/ComponentTypeSearchProvider.java; new revision: 1.1.2.8.12.2; previous revision: 1.1.2.8.12.1 schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/search/NameSpaceSearchProvider.java; new revision: 1.1.2.6.16.2; previous revision: 1.1.2.6.16.1 schema/schemaui/src/org/netbeans/modules/xml/schema/ui/basic/search/Providers.java; new revision: 1.1.2.7.22.1; previous revision: 1.1.2.7
Verified in 070205_12.