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 225401 - Ctrl+Click in Java editor on groovy class do not navigate user to groovy editor
Summary: Ctrl+Click in Java editor on groovy class do not navigate user to groovy editor
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal with 4 votes (vote)
Assignee: Martin Janicek
: 211929 (view as bug list)
Depends on:
Blocks: 211896
  Show dependency tree
Reported: 2013-01-28 09:22 UTC by Otaka
Modified: 2014-08-20 11:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Otaka 2013-01-28 09:22:02 UTC
1. Create groovy class TestGroovy
2. Create java class TestJava.
3. In java class write something like
 class TestJava{
static void method(){
    TestGroovy gr=new TestGroovy();

4. Make Ctrl+click on "TestGroovy".

Expected result
 NB should navigate us to TestGroovy.groovy

Actual result
 NB writes "Cannot open TestGroovy" (missing sources?)
Comment 1 Martin Janicek 2013-02-07 08:05:26 UTC
*** Bug 211929 has been marked as a duplicate of this bug. ***
Comment 2 _ wadechandler 2013-04-20 04:28:56 UTC
It also seems if you have Java file and Groovy files in the same project, and if you are in a Groovy file, and you CTRL+Click on a Java class the editor will not navigate to the Java file. This is a Maven project where the Groovy and Java files are under separate directories. Maven projects are laid out like project/src/main/java and project/src/main/groovy. The only work around is to highlight the whole class name and then choose Navigate|Goto Type and it will auto fill in the name for you, and then you click OK. Pretty annoying after a while and disruptive to the workflow.
Comment 3 simas 2014-08-20 11:38:18 UTC
+1 for this