cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

JohnBaker FindUsages

Revision as of 13:04, 5 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

Spring Support for Find usages

Intro

The Spring support will

  1. Plug into the Java find usages to show Spring beans definitions which refer to Java classes.
  • (the find usages result will show those configuration files and java files where the bean is used)
  1. Also, the Find Usages action will be available for bean definitions as well, to show beans used by other beans (for example in aliases or as arguments to constructors and properties).
  • select a dispatcher servlet config file and right click on a Bean definition in the Navigator

Screen shots (feature under construction)

Find Usages action will be available for bean definitions
[[File:]]

Plug into the Java find usages to show Spring beans definitions which refer to Java classes

[[File:]]

[[File:]]

[[File:]]


Use Cases

A.

  1. In the Project window, select Bean class (java source file) , right-click and choose Find Usages
  • Result: A Find Usages dialog opens with options (Find Usages, Find All Subtypes, Find Direct SubTypes)
  1. Clicking the Find button
  • Result: the Usages pane appears in the Output area with a tree view of files that use the Bean (both Java source and dispatcher Servlet config files)

B.

  1. From a Spring project, open a Java source file. In the Java editor , select a class, right-click and choose Find Usages
  • Result: A Find Usages dialog opens with options (Find Usages, Find All Subtypes, Find Direct SubTypes)
  1. Clicking the Find button
  • Result: the Usages pane appears in the Output area with a tree view of files that use the Bean (both Java source and dispatcher Servlet config files)

C.

  1. In the Project window, select a dispatcher servlet configuration file
  2. With the Navigator open, right-click on a Bean definition and choose Find Usages
  • Result: The Usages pane appears in the Output area with a tree view of files that contain those beans in the bean definition


References