Structural Search - classes implementing interface X AND B

Hi

I try to use Structural Search to find all classes that implement 2 interfaces Alpha AND Beta.

The following gives me too many results:

class $Class$ implements $Interface1$ $Interface2$ {}

Any ideas how I can achieve my task? Maybe Maxim knows...

Thanks in advance for any help!

--Etienne

5 comments

Doesn't class $Class$ implements $Interface1$,$Interface2$ {} work (,
missed)?

etienne wrote:

Hi

I try to use Structural Search to find all classes that implement 2 interfaces Alpha AND Beta.

The following gives me too many results:

class $Class$ implements $Interface1$ $Interface2$ {}

Any ideas how I can achieve my task? Maybe Maxim knows...

Thanks in advance for any help!

--Etienne



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

0

Hi Maxim

I had tried that but it does not work. No results are found at all when I use the ','.

Is the AND search even possible?

--Etienne

0

It always do AND on conditions.
However, there is a bug in finding oimplementations of two interfaces
within hierarchy (when interfaces are implemented by some ancestors) and
this is what you are likely looking for.

The issue will be fixed in 5.0.3 / Demetra

etienne wrote:

Hi Maxim

I had tried that but it does not work. No results are found at all when I use the ','.

Is the AND search even possible?

--Etienne



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

0

Hi Maxim

Thanks for your info. This is exactly the scenario I have (two interfaces within type hierarchy).

Looking for 5.0.3 ;)

--Etienne

0

http://www.jetbrains.net/jira/browse/IDEADEV-2708

etienne wrote:

Hi Maxim

Thanks for your info. This is exactly the scenario I have (two interfaces within type hierarchy).

Looking for 5.0.3 ;)

--Etienne



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

0

Please sign in to leave a comment.