I mean not which classes to search but which classes to replace. For example looking for $Class$.$MethodCall$($Parameter$) where $MethodCall$ matches newINstance() will return calls to static factory methods defined in my code but will also return matches to calls to SAFParserFactory which I do not want to replace. Will scope help with hat sort of stuff?
You'd need to specify text constraint on $Class$, probably applied within hierarchy
Alex Roytman wrote:
I mean not which classes to search but which classes to replace. For example looking for $Class$.$MethodCall$($Parameter$) where $MethodCall$ matches newINstance() will return calls to static factory methods defined in my code but will also return matches to calls to SAFParserFactory which I do not want to replace. Will scope help with hat sort of stuff?
>>Surely, one can specify custom scope for needed package and subpackages >> >>Alex Roytman wrote: >> >>>Is it possible to constrain matches on class to specific package (and >>>sub-packages) >> >> >>-- >>Best regards, >> Maxim Mossienko >>IntelliJ Labs / JetBrains Inc. >>http://www.intellij.com >>"Develop with pleasure!"
-- Best regards, Maxim Mossienko IntelliJ Labs / JetBrains Inc. http://www.intellij.com "Develop with pleasure!"
Surely, one can specify custom scope for needed package and subpackages
Alex Roytman wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
I mean not which classes to search but which classes to replace. For example
looking for $Class$.$MethodCall$($Parameter$) where $MethodCall$ matches
newINstance() will return calls to static factory methods defined in my code
but will also return matches to calls to SAFParserFactory which I do not
want to replace. Will scope help with hat sort of stuff?
"Maxim Mossienko (JetBrains)" <Maxim.Mossienko@jetbrains.com> wrote in
message news:eftdbi$f06$1@is.intellij.net...
>
>> Is it possible to constrain matches on class to specific package (and
>> sub-packages)
>
>
Ok, my suggestion was really about search scope
You'd need to specify text constraint on $Class$, probably applied
within hierarchy
Alex Roytman wrote:
>>Surely, one can specify custom scope for needed package and subpackages
>>
>>Alex Roytman wrote:
>>
>>>Is it possible to constrain matches on class to specific package (and
>>>sub-packages)
>>
>>
>>--
>>Best regards,
>> Maxim Mossienko
>>IntelliJ Labs / JetBrains Inc.
>>http://www.intellij.com
>>"Develop with pleasure!"
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"