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.

hierarchy_popup

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:

type_hierarchy

 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

Comments:

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"

Posted by pcdinh on August 21, 2010 at 03:56 AM CEST #

To pcdinh:
screenshot:
http://blogs.sun.com/netbeansphp/resource/article_images/php_hierarchy_view_popup.png

is taken from #2214:
http://bertram.netbeans.org/hudson/job/PHP-build/
(in the blog entry there was a link to it)

Posted by radek on August 21, 2010 at 05:21 AM CEST #

TSKLER

Posted by OSMAN on August 22, 2010 at 02:20 PM CEST #

Wow! That's awesome!
Thanks for such innovations!

Idea:
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.

Posted by Raazy on August 24, 2010 at 03:24 AM CEST #

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)

Posted by radek on August 24, 2010 at 04:04 AM CEST #

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 ;)

Posted by Raazy on August 24, 2010 at 04:24 AM CEST #

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?

Posted by Raazy on August 24, 2010 at 04:29 AM CEST #

To Raazy:
yes

Posted by radek on August 24, 2010 at 04:59 AM CEST #

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

Posted by hantsy on October 28, 2010 at 02:29 AM CEST #

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

Posted by hayvancılık on February 23, 2011 at 06:09 AM CET #

Thanks alot

Posted by اعلانات مجانية on March 03, 2011 at 12:40 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today