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 216075 - Generic Usages
Summary: Generic Usages
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 15:11 UTC by villoto
Modified: 2015-03-24 11:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (59.08 KB, text/plain)
2012-07-27 15:11 UTC, villoto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description villoto 2012-07-27 15:11:32 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Linux version 3.2.0-27-generic running on amd64
Java; VM; Vendor = 1.6.0_30
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.5-b03

When I search for "Find usages" with "Open projects" scope, IDE does not find anything, but when I select "Custom scope" with all projects selected then IDE find all usages.

I don't know if it influences to use custom Ant Script. This bug is inherited from older IDE versions.
Comment 1 villoto 2012-07-27 15:11:43 UTC
Created attachment 122468 [details]
IDE log
Comment 2 Jaroslav Havlin 2012-07-30 07:19:05 UTC
Please, could you describe your project structure?
Are you searching in NetBeans sources? What projects are open?
Thank you for reporting.
Comment 3 villoto 2012-07-31 13:47:56 UTC
I work with a project is divided in several free form web subprojects, each has its own ant script.
Some subprojects have dependencies with others subproject in its ant script:

<path id="subproject3.dependencies">
            <path path="../../webmodules/subproject1.jar" />
            <path path="../../webmodules/subproject2.jar" />
</path>

The type search is "Find Usages" of an Enum type, example:

enum Dia {
  LUNES, MARTES, MIERCOLES, JUEVES, VIERNES, SABADO, DOMINGO;
}

Find Usages: JUEVES.

With "Open projects" option selected, the IDE don't find anything, but with "Custom Scope" selected IDE find all occurrences.

I did a test with several projects with dependencies among themselves, but this time with the IDE ant script. I did the same search and the IDE found all ocurrences successfully.

Thanks :)
Comment 4 Ralph Ruijs 2015-03-24 11:01:59 UTC
The option "Open projects" takes the classpath from the project to limit the number of files to search, there is no need to search unrelated projects. With the custom scope you, the user, tell which parts need to be searched and are related. It is not possible to get this working reliably in free form projects.