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 218838 - Select in projects/files does not work for generated sources
Summary: Select in projects/files does not work for generated sources
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-22 21:13 UTC by markiewb
Modified: 2013-06-19 16:20 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 markiewb 2012-09-22 21:13:15 UTC
[ BUILD # : 201209210001 ]
[ JDK VERSION : 1.7.7 ]

Create a project. Attach a library (but without attached sources) 
Now open a class from this library via "go to type" dialog.
The IDE shows a generated source file.

ACTUAL "Select in projects"/"select in files" and "sync editor with views" does

not work.

EXPECTED "Select in projects"/"select in files" and "sync editor with views" 
works.
Comment 1 Jiri Prox 2012-09-24 09:02:29 UTC
Can you provide more info. The Select in Project and Sync views for classes from library works fine. (tried on Absolute Layout library)

I'm not sure how should work Select in Files, the classes are not part of project directory and sub-directories so there is no node to be selected.

Thanks
Comment 2 markiewb 2012-09-25 06:36:37 UTC
(In reply to comment #1)
> I'm not sure how should work Select in Files, the classes are not part of
> project directory and sub-directories so there is no node to be selected.

When there is only one choice (like only on project OR n projects but only one references the lib) open it directly. When there are several choices like 2 projects referencing the same lib, then present a "choice dialog". After selecting an item in the "dialog", the node will be selected.
Comment 3 Tomas Zezula 2013-06-19 16:20:44 UTC
Works fine.
1) Created a J2SE Project.
2) Added Library with no sources (Lucene containing lucene.jar)
3) Go To Type IndexReader -> generated file opened.
4) Select In Project -> selects IndexReader.class from lucene.jar under J2SE Project's Libraries.