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 202610 - Inspet&Refactor - Current Project scope does not work when invoked from the Projects tab
Summary: Inspet&Refactor - Current Project scope does not work when invoked from the P...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-24 17:28 UTC by Jan Lahoda
Modified: 2011-09-25 14:05 UTC (History)
2 users (show)

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 Jan Lahoda 2011-09-24 17:28:21 UTC
Select a project in the Projects tab and invoke Inspect and Refactor from the Refactor main menu. Select any configuration or hint, make sure Current project scope is selected, and press Inspect. This never leads to any meaningful result - No Patterns Found is always shown, even if the selected hints have a lot of occurrences in the given project.

Workaround: invoke the dialog while the focus is in an opened editor.

This is a problem with scope construction. I will do a hotfix, which we should (IMO) consider for backporting to beta, David, Marian, what do you think? I will create another issue to cleanup the scope construction code, so that it is less error prone.
Comment 1 Jan Lahoda 2011-09-24 17:35:44 UTC
http://hg.netbeans.org/jet-main/rev/9f362a7310d4
Comment 2 Jan Lahoda 2011-09-24 20:21:58 UTC
Something similar for custom scope:
http://hg.netbeans.org/jet-main/rev/ee8eb285328f
Comment 3 Quality Engineering 2011-09-25 14:05:39 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/9f362a7310d4
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #202610: fixing the Inspect&Refactor's Current Project scope when the dialog is opened while the focus is in the Projects tab. Also use all project's source groups to fill the scope.