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 56993 - Find action on Project node in Projects View is disabled
Summary: Find action on Project node in Projects View is disabled
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-03-25 13:35 UTC by Marian Mirilovic
Modified: 2006-03-24 12:59 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 Marian Mirilovic 2005-03-25 13:35:09 UTC
NB4.1(200503242007), JDK1.5.0_02, Linux RH9/Gnome

Steps to reproduce:
- run IDE
- create new project
- invoke popup menu on Project node in Projects View
-> Find menu item is disabled !!!
If works do next:
- invoke Find , write something to find "xxx"
- push Ok
- invoke popup menu on project node in Projects View
-> Find menu item s disabled


I know, you can enable this action just by selecting another node and back to
project node, but it's annoying and if I can remember it's regression.
Comment 1 Marian Petras 2005-03-25 14:45:55 UTC
Yes, it is a regression. It must have appeared quite recently.

Confirmed, accepted.
Comment 2 Marian Petras 2005-03-29 07:21:44 UTC
Fixed in the trunk.

I changed the mechanism of enabling and disabling the Find action. Before the
change, it was done by setting/unsetting SearchPerformer of the system Find
action. Now the newer, recommended mechanism is used - by adding an entry in a
TopComponent's ActionMap. The entry maps the system Find action's key to the
Find action implementation in the Utilities module. ActionMap is modified for
each TopComponent where this implementation of Find should work, i.e. in all
TopComponent except the editor.

Modified files:
    utilities/src/org/netbeans/modules/search/:
                               Bundle.properties   (1.31)
                               SearchPerformer.java   (1.37)
                               FindActionManager.java   (1.6)
                               Installer.java   (1.31)
    utilities/project/src/org/netbeans/modules/search/project/:
                               ProjectsSearchAction.java   (1.7)

Diffs:
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/Bundle.properties?r1=1.30&r2=1.31&diff_format=u
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/SearchPerformer.java?r1=1.36&r2=1.37&diff_format=u
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/FindActionManager.java?r1=1.5&r2=1.6&diff_format=u
http://utilities.netbeans.org/source/browse/utilities/src/org/netbeans/modules/search/Installer.java?r1=1.30&r2=1.31&diff_format=u
http://utilities.netbeans.org/source/browse/utilities/project/src/org/netbeans/modules/search/project/ProjectsSearchAction.java?r1=1.6&r2=1.7&diff_format=u
Comment 3 Marian Mirilovic 2005-03-29 20:44:10 UTC
verified in NB4.1(200503291800)