I'm using Intellij with Maven, so it's very easy to download the source code of any 3rd party library I'm using (assuming it posted the source to the Maven repository, of course). Is it possible to find usages of a method within that 3rd party library?
In other words, I would like to use IntelliJ's "Find Usages" action and find usages that aren't in my code, but in the 3rd party source code. Is it possible? If not in IntelliJ, is there another tool that does this?
In the editor, select a symbol for which you want to see the usages. From the main menu, select Edit | Find Usages | Show Usages In Code Ctrl+Alt+F7 . The usages window shows the current scope and total count of usages. If you want to quickly switch to the default scope, press Ctrl+Alt+F7 .
Third-party libraries A third-party (or “contributed”) library is a chunk of Javascript code, usually contained in a single . js file, designed to work with p5.
Find usages in the current file Click the desired symbol in the editor, or in the Structure view. From the main menu, choose Edit | Find Usages | Find Usages in File, or press Ctrl+F7 . The encountered usage is highlighted in the editor.
These libraries contain packages which allow extending functionality and cater to various types of Java applications. Besides, the core Java libraries, there are also some third-party Java libraries, which are quite useful for Java developers. Moreover, most of these libraries are open-source and free for usage.
UPDATE
Ok, so I have found out that you can search for usages. When you ALT-F7 (find usages) on a method, simply select your scope as being Project and Libraries instead of just Project or Module. This works perfectly for me. Finds all usages of methods etc. in other libraries that have source code included.
ORIGINAL ANSWER I don't think that is possible (I might be wrong, so if anyone knows I would also be interested in the answer). As I understand it, adding the source code simply gives you the ability to "see" what is going on in that code. It is not really included in you project. IntelliJ only indexes your own project for finding usages etc.
As for other applications, I do not know :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With