Searching is one of the most important activities which an ABAPer need to do during development as well as troubleshooting. We may try to search an ABAP Object, a transaction, Where-used-List etc. To be able to effectively use Eclipse ADT for everyday development tasks, it is essential that a developer should be aware of Searching basics in Eclipse and thankfully it is very easy to learn.
There are some variants of search which work differently. Let’s try to understand them one by one:
- Object Search: Use Search Ctrl + H for global search. This has the capability to search in either in Workspace or Project.
- Local Code Search: Ctrl + F local search/replace: This search is available in almost every local editor and it is handy with Eclipse development-artifact files to open in the editor also:
- Where-used-list: Use ABAP’s where-used-list using Ctrl + Shift + G shortcut. To use Where-used-list, the developer needs to put the cursor on the object for which s/he needs to find where-used and then press the shortcut or click the button in top button toolbar.
- Navigation: Forward navigation is supported in ADT by Ctrl + Click. There are two types of quick views also supported:
- Quick type hierarchy(Ctrl + T): Displays type hierarchy of a class/interface
- Quick outline(Ctrl + O): Displays internal structure of class/program/interface. The quick outline provides a short overview of Source code. As you can see in this diagram, the source methods are clearly outlined and it makes it very easy to navigate them as and when required.