Eclipse - find all classes that extend interface

前端 未结 7 574
情书的邮戳
情书的邮戳 2021-02-05 05:06

We have an interface that has a child interface. Ie:

public interface GenCalculator extends Serializable {}

public interface SpecialCalculator extends GenCalcu         


        
相关标签:
7条回答
  • 2021-02-05 05:17

    Ctrl+H brings up the search, go to Java search, and click "All Occurrences".

    0 讨论(0)
  • 2021-02-05 05:18

    You CAN do this, but it doesn't involve the Type Hierarchy.

    In the Eclipse editor pane, highlight the name of the class of which you want to find extending classes.

    Then go to Search > Java Search and the name of that class should be prepoplated in the search field.

    Check the 'Limit To > Implementors' radio button.

    Click the Search button.

    0 讨论(0)
  • 2021-02-05 05:20

    Ctrl+T to view all descendants

    Press it the combination a second time (see fine print in initial popup) if you want to display super interfaces/classes.

    0 讨论(0)
  • 2021-02-05 05:21

    You can't do it in only one search.

    May be you could use the "Text Search" option and wildcards, something like searching for "*s YourInterfaceName" (trying to catch "extends YourInterfaceName" and "implements YourInterfaceName") but is too tricky.

    0 讨论(0)
  • 2021-02-05 05:28

    You can do it with nWire for Java. However, nWire requires Eclipse 3.3 and above. I highly recommend upgrading.

    0 讨论(0)
  • 2021-02-05 05:35

    Move your mouse on the class name and press CTRL+T

    0 讨论(0)
提交回复
热议问题