An Oracle blog about NetBeans for PHP

Type Hierarchy View

Everyone who uses daily builds of our PHP support in NetBeans IDE might noticed couple of new features that were added after 6.9.1. One of them is Type Hierarchy View which is helpful for OO PHP code. 

To show this view use action from editor popup menu: Navigate >  PHP Type Hierarchy.


One can assign shortcut for this action - use the same steps as described here.

Then you will see type hierarchy in window next navigator like this:


 Two buttons let you choose one of two views:

  • Subtype hierarchy - displays class and its subclasses or interface and the classes that implement it (on the picture above)
  • Supertype hierarchy - displays classes that are extended and interfaces that are implemented 

 All the issues or enhancements please report in NetBeans Bugzilla

Join the discussion

Comments ( 10 )
  • pcdinh Saturday, August 21, 2010

    I have checked out the latest build

    Product Version: NetBeans IDE Dev (Build 2010-08-21_06-03-45 )

    but the feature you mentioned are not there yet.

    No such thing like "Navigate > PHP Type Hierarchy"

  • radek Saturday, August 21, 2010
  • OSMAN Sunday, August 22, 2010


  • Raazy Tuesday, August 24, 2010

    Wow! That's awesome!

    Thanks for such innovations!


    Is there possibility to show both Sub and Super types in same window? Ie. in the same window with auto sized splitter? Like this?


    | Super |

    | Super |

    |-------| <-- splitter

    | Subs |

    | Subs |

    | Subs |

    | Subs |


    Also would be nice to put this View into Main Menu? For example: Window->Navigating

    One can easily miss this cool feature.

  • radek Tuesday, August 24, 2010

    To Raazy:

    - putting it into Window->Navigating makes sense

    - I don't like the idea having both view in one window - maybe the better would be to show individual methods, fields, constants for currently selected type item (maybe splitted window could be used for it)

  • Raazy Tuesday, August 24, 2010

    To radek:

    Good idea too. But if you do this, please put options to turn visibility of method, fields and constants OFF/ON to avoid big mess in that view. Or use tree with all of this collapsed. Also sorting would be useful IMHO (Alphabet and Source).

    BUT please consider if showing these details is not duplicating of Navigator functionality.

    Ok, it makes sense to not putting both view into one window. So what about two windows, one for supertypes and second for subtypes?

    Aim of this is ability to see both implementation without needing to click on switcher ;)

  • Raazy Tuesday, August 24, 2010

    Sorry, after posting my last answer I see you point now. You mean leave the list as is, and only show these details under split, right?

  • radek Tuesday, August 24, 2010

    To Raazy:


  • hantsy Thursday, October 28, 2010

    Why php specified? This feature should be supported in all OOP lang.

  • hayvanc&#305;l&#305;k Wednesday, February 23, 2011

    maybe the better would be to show individual methods, fields, constants for currently selected type item (maybe splitted window could be used for it)

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha

Integrated Cloud Applications & Platform Services