Ok. These ideas just popped into my mind when I was searching for the word "JViewport" in a bunch of java files.
I would like to be able to conveniently see where I'm located in the code when I've found a location in the editor.
This does exist (sort of) when finding usages... then you search and you get the results as a tree representing the location (class - method) of the usage of this particular thing you were trying to locate the usages of.
What I would like to be able to do however, is see where I'm located in the code when I'm editing. Let's say that my cursor is located in the following place (cursor denoted by "|"):
I would like to be able to press some quick key combination and get:
Just to see where I'm located in the code.
An example scenario (the one that I'm currently in) is when I'm creating a GUI component and I'm emulating some of the behavior of a swing component... For example: I'm creating an OutlookBar component and I'm using JTabbedPane as an example to build my component upon... I just wanted to see where they defined the JViewport for scrolling the tabs in JTabbedPane because I wanted to define my JViewport in the same place... I did a search for JViewport in BasicTabbedPaneUI and I did find some places but it was hard to realize the exact location in the code structure since there is a lot of code.
Does anybody agree with me on this? Would this be usable? I wanted to see if there was anyone else that might think this is useful before I put in a request for this feature. Maybe it's a stupid one?
Kind regards, Stefan Freyr.