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.

4 comments

Hi,

Do you mean references to fields of the class or
fields of the class itself.

Michael Damberger wrote:

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.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

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)

0

Hi,

Use this template and constraints + additionally set Apply constraint
within type hierarchy in text constraints group.

Michael Damberger wrote:

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)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.