Java Reference
In-Depth Information
Figure 9.11
SSR lets you change one structural pattern with another.
In the Structural Replace dialog, the Shorten fully qualified names option, if
enabled, uses the short name of any class references, automatically adding any
necessary import statements to the replacement source code. The Format accord-
ing to style option enables/disables automatic code formatting when the replace-
ment text is generated.
9.3.2
Analyzing dependencies
One audit often performed on a software project is an analysis of dependencies in
which your software participates. You may need to validate your design: Some
software design metrics attribute one-way dependencies from highly abstract
packages to specific implementation packages as a sign of good design. You may
need to determine a canonical list of which third-party libraries are being refer-
enced from within your project. You may be examining the relationship between
the different modules in your project. This could be an arduous task, but IDEA 4.5
introduced a dependency analysis tool to help you find these dependencies.
To analyze the dependencies in your project, select Analyze | Analyze Depen-
dencies from the main menu. Alternatively, right-click the subject of the analysis
(package, class, and so on), and select the appropriate item from the context
menu. In the editor and the Project and Packages tabs of the Project tool win-
dow, this menu item is found under Analyze | Analyze Dependencies ; in the
 
 
 
 
 
 
 
 
 
Search WWH ::




Custom Search