Eclipse Text Search, automating loop over a list o

2019-09-19 10:35发布

问题:

I'm using Eclipse to do a text search on a Java Application. The list of references / search terms are stored procedures (SP). My goal is to see if these SP are being called in the Java App. I have 50 items, I was hoping if there's a better way of doing this because at the moment my workflow is:

  1. select word from List, then push Ctrl-H (Open Text Search)
  2. Click enter
  3. Record the resultset if any

Is there any way to do this more efficiently? I'm pretty sure I will doing this in the near future again. I've considered using Java, write a small code that reads through the App in the filesystem, looking at the .java files recursively. But I doubt if that will be actually fast enough as the App has many files.

回答1:

I would search by regular expression (checkbox in a search dialog) for the following string: SP_NAME1|SP_NAME2 (the search terms delimited by |). I make such strings using regexp too.