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 105420 - Ctrl-Click does not jump to source in extra-compilation-unit
Summary: Ctrl-Click does not jump to source in extra-compilation-unit
Status: CLOSED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-01 17:21 UTC by tomwheeler
Modified: 2012-05-22 12:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Suite to illustrate problem with generated source (3.37 MB, application/octet-stream)
2007-06-01 20:32 UTC, tomwheeler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tomwheeler 2007-06-01 17:21:28 UTC
As per the scenario described in issue 105172, I have a project containing
source code in the normal spot, plus an additional source tree consisting of
source generated using JAXB.  It is important that these be kept separate to
avoid overwriting code written by hand and to keep generated source out of
source control.

In issue 105172, Jesse Glick explained how to use the cp.extra property to let
the IDE know about these files.  Putting:

 cp.extra=${gen.src.dir}

in my module's project.properties file got rid of the "red squigglies" but one
problem remains.  I can Ctrl+Click a reference in source code and jump to the
source code for any class below src.  However, this does not work for any
reference to a class that is below the generated source directory.

This is a less important problem to me than the original, but it would be nice
if this worked as expected.

http://www.netbeans.org/issues/show_bug.cgi?id=105172
Comment 1 Jesse Glick 2007-06-01 18:50:48 UTC
Probably you need to put the *output* dir in cp.extra, not the source dir.

If you have a minimal demo project (also for issue #105172), that would be more
helpful since then I could try it and see what exactly you are talking about.
Comment 2 tomwheeler 2007-06-01 19:07:51 UTC
I will create a suite to illustrate the problem this afternoon.
Comment 3 tomwheeler 2007-06-01 20:32:04 UTC
Created attachment 43133 [details]
Suite to illustrate problem with generated source
Comment 4 tomwheeler 2007-06-01 20:36:55 UTC
The attached suite uses JAXB (via included library module) to generate Java code
from schema.  This was created and verified using NB 6.0 Milestone 8 on Windows
XP under Java 1.6.0.

To see for yourself, build the project and then open the
SchemaGeneratedClassUser source in the editor.  Doing a Ctrl+Click on a
reference to the Advisor class works (I assume because it is in the src tree),
while doing the same to the generated Address or Datebook classes does not.

I tried various combinations of cp.extra in project.properties, but none solved
this problem.
Comment 5 Jesse Glick 2007-06-01 21:29:06 UTC
Working for me in 070601 just the way you have it. Unpacked and built the suite,
opened the class you mentioned (and its containing project), Ctrl-Click worked
in all cases.
Comment 6 tomwheeler 2007-06-01 22:00:32 UTC
I just downloaded today's daily build and confirm that it works as Jesse says.