Java Reference
In-Depth Information
Commander
tool window and the
J2EE
tab of the
Project
tool window, it's not in
a separate submenu.
The
Dependency Viewer
tool window provides a three-pane view into the
results of the analysis, as shown in figure 9.12.
The upper-left pane, the
Analyzed Code
window
,
contains a tree view of your
project's files. Selecting an entry on that tree (such as a specific package or a class)
populates the upper-right pane, the
Parent Code
window
,
with a tree that repre-
sents the classes on which your selection depends. These dependencies include
not only other classes in the project but also any classes in libraries and in your
test sources, if the corresponding view filter is enabled.
The bottom pane, the
Usage
window,
is populated when you select an entry
in the
Parent Code
window. Much like the
Find
tool window, the
Usage
window
shows a tree view of the lines in the
Analyzed Code
selection that explicitly refer
to your
Parent Code
selection. For example, if you analyze the dependencies in
your project and select the
FixedRateCurrencyExchangeService
in the
Analyzed
Code
window, you can see in the
Parent Code
window that it depends on the
CurrencyExchangeService
interface. When you select the
CurrencyExchange-
Service
interface from the
Parent Code
window, the
Usage
window shows all the
lines in
FixedRateCurrencyService
that refer to
CurrencyExchangeService
. In this
Figure 9.12 The Dependency Viewer tool window is used to explore the network of interdependen-
cies within your body of code.