another struct search question
with template "Fields of the class" I can search
for all places where a certain class is used as a field.
Is it also possible to do the same search, but find
all places where a class or its subclasses is used as a
field?
Hava a nice weekend,
M.
Please sign in to leave a comment.
Hi,
Do you mean references to fields of the class or
fields of the class itself.
Michael Damberger wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I use the template "Fields of the class":
class $Class$ {
$FieldType$ $FieldName$ = $Init$;
}
-> Edit Variables, FieldType = MyBaseClass
-> this gives me a list of all classes which have fields
of type MyBaseClass.
-> now I want to find all classes which have fields of
type MyBaseClass or MyClass2, MyClass3, MyClass4 ... (which all extend MyBaseClass)
Hi,
Use this template and constraints + additionally set Apply constraint
within type hierarchy in text constraints group.
Michael Damberger wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
yes, that works. Thank you!!
M.