Values of Constants

After a few days I have found a minute to write a short blog post. Thanks to Radek, in the development build of NetBeans 6.9 values of constants are displayed in Navigator window and also in Code Completion window. As you can see on the picture below, the values are displayed for the global constants and for class constants as well. 

The value of a constant also appears in the documentation window  for the selected code completion item.

Comments:

Really nice. Thanks for the update!

Posted by Tom on April 22, 2010 at 03:15 AM CEST #

Sweet! Showing the value on mouse over would be really cool :)

Posted by Pet on April 22, 2010 at 04:16 AM CEST #

really nice, for me one of the most beautiful improvements in the last weeks.. thanx for this.
Maybe it's not the place for this, but I would be very happy, if the next step in this direction would be code completion of (global) array keys.

Posted by tufan on April 22, 2010 at 04:32 AM CEST #

@tufan

file an issue for this, I'll vote for it

Posted by Pet on April 22, 2010 at 04:37 AM CEST #

@Pet

there are already two issues related to this (which i could find in the bugzilla):
180593 - Code Hints For Array objects
180753 - Auto-completion for named array key

i'll vote for both of them.

Posted by tufan on April 22, 2010 at 05:25 AM CEST #

in today's builds "Go to Declaration" seems to be broken. also ctrl+click only leads to the class declaration line. Don't know if this is related to this enhancement though...

Posted by tufan on April 22, 2010 at 07:57 AM CEST #

@tufan

"Go to Declaration" seems to work for me. Can you provide me with more details, thanks

Posted by radek on April 22, 2010 at 09:25 AM CEST #

@radek
deleting cache dir and automatic rescan of the projects solved the problem. thanx

Posted by tufan on April 22, 2010 at 10:49 AM CEST #

I agree that better type inference should be next logical step in our php support

Posted by radek on April 22, 2010 at 11:09 AM CEST #

very good

Posted by alexey_baranov on April 24, 2010 at 12:37 PM CEST #

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