How to find all classes in a certain package space

Answered

I know that from the navigation bar I can see all classes available in a certain package. For example, I am clicking on the control folder which is showing me the list of classes the control package space contains(larger rectangle box),

But as far as I know, we can divide up the package space into multiple package(jar files). For example, there could be another jar file somewhere that can add more classes at com.jme3.bullet.control.

I have the following 2 questions,

  1. I was wondering if the class view(the larger rectangle) is showing me all classes in the control package space. Or there could be more classes in some other packages or in jar files that the list is not showing.
  2. If I am not seeing all the classes, how do I find them? Is there any easy way to do it with IntellijIDEA?

Thank you!

0
4 comments

1. It's showing only classes located in the source root of the jme3-bullet module that you can tell from the breadcrumbs in the navigation bar. It doesn't show classes added via the dependent jars or classes that may be located in the other source roots or in the other modules.

2. You can use the Packages mode for the project view with the following options:

Note that classes located in the jars (dependencies) will be displayed separately under the Libraries node.

1
Avatar
Permanently deleted user

Thank you.

For the 2nd answer, I can not seem to find 'Show Libraries Contents' in the menu. Here is what I am seeing on my computer,

I am using IntellijIDEA 2018.3.5 Preview. I also tried with EAP release, and I didn't find the option there.

0

You have to switch to the Packages mode as mentioned in my answer:

1
Avatar
Permanently deleted user

Found it. Thank you.

Sorry I didn't get it the first time. I didn't know we have package view mode. There are so many hidden features in intellijidea.

 

So, in a nutshell,

  • The first way, the list from the navigation bar only shows the files physically located in the folder.
  • The second way, shows all classes in that package space.

Am I right?

0

Please sign in to leave a comment.