2.X Feature request

Can you add something to Find Usages (Advanced) where you search for all usages of a method (ie Control.Visible) where it is being called on an object which is of a given type (or subclassed from) a different class (ie Form.Visible)

Basically I want to find all calls to Form.Visible in my code, but can only search for all usages of Control.Visible which brings back entirely too many results.

Maybe this already exists and I just haven't seen it?

2 comments
Comment actions Permalink

I've requested this same feature.

We have a setup where we have about 100 classes derived from a common base
class. There have been more times than I can count where I want to find
usages of a common baseclass property or method, but ONLY on one of the
derived classes... not on the base class it's defined on. It would sure be
nice to do that.


"Eric" <no_mail@jetbrains.com> wrote in message
news:15725996.1140627619443.JavaMail.itn@is.intellij.net...

Can you add something to Find Usages (Advanced) where you search for all
usages of a method (ie Control.Visible) where it is being called on an
object which is of a given type (or subclassed from) a different class (ie
Form.Visible)

>

Basically I want to find all calls to Form.Visible in my code, but can
only search for all usages of Control.Visible which brings back entirely
too many results.

>

Maybe this already exists and I just haven't seen it?



0
Comment actions Permalink

Hello Eric,

it seems that you're looking for what is described in this very old request:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=12
(actually, this request was the 12th request submitted internally to the
ReSharper tracker, long
before EAP 1.0 started). Unfortunately, the problem is still here - currently
there is no straightforward
way for doing this. There is a workaround described in the request, but it
involves artificial modification of
code, it is rather ugly and it works only for source code, so it is not applicable
in your case at all.

I doubt it makes sense to update this elder request. So I think you can submit
this to the tracker, and we'll
consider it for next versions.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Can you add something to Find Usages (Advanced) where you search for
all usages of a method (ie Control.Visible) where it is being called
on an object which is of a given type (or subclassed from) a different
class (ie Form.Visible)

Basically I want to find all calls to Form.Visible in my code, but can
only search for all usages of Control.Visible which brings back
entirely too many results.

Maybe this already exists and I just haven't seen it?



0

Please sign in to leave a comment.