Structural search - find all instantiations of a class incl. sbuclasses
Hi
I'd like to find all instantiations of a class and its subclasses.
Example:
Find all lines where a subclass of JComponent is instantiated, e.g. new JTable(), new JTextField(), etc.
Is the structural search the right thing for this? If so, how whould the query look like?
--Etienne
Please sign in to leave a comment.
new $classname$($params$)
where $classname$ is bound to javax.swing.JComponent with "apply constraint
within type hierarchy" checkbox on,
$params$ only define occurences count: min 0, max: 10000
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"
Awesome!
Thanks for your quick and helpful response!
--Etienne
Maxim Shafirov wrote:
There really should be an "unlimited" max count. This 1000 looks a bit
like a "hack" :)
BoD
What about leaving max empty?
Tom
Hi,
Seems fine idea for any occurence field (default still 1 though).
Thomas Singer (MoTJ) wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Then there need to be a check box that disable the textfield (like the
one for "Maximum matches".)
It doesn't change anything, it's just a GUI maturity thing...
BoD
Thomas Singer (MoTJ) wrote:
Hi,
3247
BoD wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"