Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Find Usages" in 3rd party libraries

Tags:

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?

like image 930
ripper234 Avatar asked Nov 24 '10 06:11

ripper234


People also ask

What is find usages in IntelliJ?

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 .

Which file is used to include the third-party libraries?

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.

How do I check my Pycharm usage?

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.

What is third-party library in Java?

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.


1 Answers

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 :)

like image 85
Nico Huysamen Avatar answered Oct 03 '22 23:10

Nico Huysamen