Structural Search help
I'm trying to find all calls to HttpSession.setAttribute(String string,
Object object);. Obviously, HttpSession is an interface so I need to find
all calls to implementing classes.
My template is: $Instance$.setAttribute($Parameter1$,$Parameter2$)
Variables:
Instance: text is HttpSession and search within type heirarchy is
selected
Parameter1: occurence count min = 1 and max = 1
Parameter2: occurence count min=1 and max = 1, this is focus of search
selected
I'm not getting any results. Any suggestions?
--
"A man's ethical behavior should be based effectually on sympathy,
education, and social ties and needs; no religious basis is necessary. Man
would indeed be in a poor way if he had to be restrained by fear of
punishment and hope of reward after death."
[Albert Einstein, "Religion and Science", New York Times Magazine, 9
November 1930]
Please sign in to leave a comment.
Actually, using those last settings I managed to "hang" IDEA. I had to kill
it with Task Manager.
"Brad" <brad@somewhere.com> wrote in message
news:dct5lf$5um$1@is.intellij.net...
>
>
>
Unless i'm missing something important, i would not use structural search for that (which i have yet to use in fact) but the plain old "Find usages".
You may choose to search in both project and libraries, and also to search for implementing methods .
First of all, the best way to do this particular search is to Ctrl+N, type
"HttpSession", and scroll down to that setAttribute method. Right-click
setAttribute and click "Find Usages"
Anyway, your search might work better if you replace "setAttribute" with
$Method$ which has a text constraint of "setAttribute."
You also probably want the text to be ".*HttpSession" because it's a regular
expression.
Brad wrote:
Actually, my goal is to find all classes that are inserted into the session.
I thought I could use the "This is the focus of the search" setting on
Parameter2 so my results would only be the classes. Maybe I can't do that?
Just using "Find Usages" returns too much stuff to sort out.
"Thibaut" <no_mail@jetbrains.com> wrote in message
news:21035327.1123165805116.JavaMail.itn@is.intellij.net...