JDT Call Hierarchy: Filter Test Code
tldr; Eclipse plugin to show and hide callers from tests in the call hierarchy
Often when browsing a code base, you want to know where certain constructors/methods are used. JDTs call hierarchy offers great insight but easily becomes messy when you have a lot of tests using the same methods as well. Depending on your activity, the test code may or may not be relevant to look at (e.g. where is this code used in production code). JDT itself already offers a filter to ignore test code in the call hierarchy but the feature is well hidden and hard to toggle.
The toggle is available as command and thus can be triggered using
⌘ Command + 3 +
Filter Test Code
Use the following p2 repository
How it works
Which classes are considered tests is based on whether the source folder is marked as test source folder. This can be done in the
Project properties > Java Build Path. By default, Maven projects have this configured for their
src/test/java source folder.
Released under the EPL 2.0