Usually when I’m typing a Java import statement in Eclipse or otherwise referencing a class via the packages that it is in, Eclipse shows a context menu with a list of all classes within that package. There have been several times, however, that it would only shows subpackages within a package and would not show classes within that package.
Does anyone know why this is? It sounds like a setting/preference was changed, but I never knowingly changed anything related to this.
There are at least two types of import dialogs. If you start typing a class name, it will search all packages and list possible matching classes. If you start typing a package, it will list all classes and sub packages within the package you’re typing.
Sometimes you need to press
Ctrl+spacein order to cycle to the desired dialog.