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 226331 - Add 'Navigation' from pom to pom
Summary: Add 'Navigation' from pom to pom
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
Depends on:
Reported: 2013-02-19 13:16 UTC by tomzi
Modified: 2016-07-10 19:23 UTC (History)
1 user (show)

See Also:
Exception Reporter:

IDE log (79.93 KB, text/plain)
2013-02-19 13:16 UTC, tomzi

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2013-02-19 13:16:22 UTC
When within a pom it would help SOOO much if i could navigate from pom to pom file by clicking 
on a dependency. So having

in my current pom and i CTRL-click on 'log4j-over-slf4j' that would bring me to the pom file of that version of the current 'Effektiv pom'. This feature should also resolve 'properties' as seen above.


If there is dependencyManagement section it would make sense if i CTRL-clicked on 'log4j-over-slf4j' under <dependencies> i would firest be navigated to <dependencyManagement> and if I CTRL-clicked there on 'log4j-over-slf4j' I'd be navigated to the pom file of 'log4j-over-slf4j'

Furthermore if I CTRL-clicked on a dependency in the <parent> section I'd also like to be navigated to the pom file :)

Further enhancements:
There could be hints on each dependency. And if I click those I could be navigated to the definition. The hints could even popup where I could choose if I wanted to be navigated to the dependencyManagement or the original definition


Product Version = NetBeans IDE 7.3 RC2 (Build 201302050851)
Operating System = Linux version 3.5.0-24-generic running on amd64
Java; VM; Vendor = 1.7.0_13
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Comment 1 tomzi 2013-02-19 13:16:30 UTC
Created attachment 131566 [details]
IDE log
Comment 2 Milos Kleint 2013-02-19 13:22:10 UTC
the problem with Ctrl-click on a large block of xml like dependencies is what should be underlined when invoking the link.

another problem is the difference between source and repository poms. Sourcebase pom files are more useful to be navigated to than repository only pom files.

partly implemented in a slightly different way for parent poms, when cursor is inside <parent> section in 7.3, a green I icon appears in the sidebar and is clickable leading to parent pom. I was not capable of associating the same keyboard shortcut to it as the similar java operation has.
Comment 3 tomzi 2013-02-20 16:57:10 UTC
I don't think you have to have everything feature complete at once. But from my developer point of view. I want to 

.) navigate to the dependency with in my currently open project first when clicking on an artifactId
.) if it is not in the project tree - open the pom from the local repository
.) and so on.

I did not under stand the part with the 'what
should be underlined when invoking the link.'?

I'd guess that you always should underline the artifactId, when holding CTRL. If the pom cannot be resolved, maybe some info message would help - 'Cannot find log4j-over-sl4j.1.2.3.pom'
Comment 4 markiewb 2013-05-10 17:07:24 UTC
FYI: something similar is already implemented for the parent-section of pom.xml. You can navigate to the parent.xml by CTRL-click
Comment 5 Milos Kleint 2013-05-10 18:04:55 UTC
(In reply to comment #4)
> FYI: something similar is already implemented for the parent-section of
> pom.xml. You can navigate to the parent.xml by CTRL-click

There's one drawback of the current solution and that's the missing shortcut. I've tried to come up with something that would be bound to Go to Declaration, but after some experiments I gave up. There's either a shortcut or visual representation (like we have now for parent) Unfortunately the usual Hyperlink UI is not very usable here. we need a visual marker that appears either all the time or when the given section is charged (selected or caret positioned). And with the current annotation + hyperlink api it's unachievable. So unlikely for 7.4 unless we reach a sudden breakthrough..
Comment 6 Martin Balin 2016-07-07 08:37:24 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 7 markiewb 2016-07-10 19:23:13 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)