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 93145 - Find functionality "Search Selection" not working
Summary: Find functionality "Search Selection" not working
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks: 93118
  Show dependency tree
 
Reported: 2007-01-24 23:23 UTC by Annette Wegscheider
Modified: 2007-02-28 19:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Annette Wegscheider 2007-01-24 23:23:08 UTC
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.
Comment 1 Nathan Fiedler 2007-02-02 18:56:49 UTC
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
Comment 2 htt 2007-02-05 21:00:22 UTC
Verified in 070205_12.