Code completion for constructors

The next new feature is code completion for constructors.  After new keyword the code completion windows is displayed with constructors and parameters for all available classes in the project.  

The parameters info functionality works for constructors as well.

Comments:

typo in your title: "cunstructors" should be "constructors"

Posted by Martijn on December 09, 2008 at 02:19 AM CET #

Hello,

I use the latest Dev Build( 20081203 ), but the last two Features you describe are not included...

Greetings,
Stefan Sturm

Posted by Stefan Sturm on December 09, 2008 at 04:55 AM CET #

To Martijn: Thanks. I have fixed this:).

To Stefan: The changes were committed at the end of last week and you use build from Wednesday. You should try some latest build. But unfortunately there is problem on netbeans.org site and I have talked with responsible engineers, which are going to fix it. You can also download the latest build from the continual build server: http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/ . Just unzip the zip file and run netbeans in bin folder. You can also use --userdir option http://blogs.sun.com/netbeansphp/entry/userdir .

Thanks,
Petr

Thanks,
Petr

Posted by Petr on December 09, 2008 at 06:03 AM CET #

@Petr:
I now installed 20081209, but still no Functions you are talking about :-(

Greetings,
Urkman

Posted by Stefan Sturm on December 09, 2008 at 11:37 PM CET #

Nice, constuctor completion is what I missed, thanks, I tested it on the 2008-12-10_03-38-34 from http://deadlock.netbeans.org/hudson/job/PHP-build/ and it works as you describes.

Suggestion for improvements - type of params from type hinting or from phpdoc @param will be very helpful also.
Example

class StepToLeft {

/\*\*
\* @param IDirection $left
\* @param string $info
\* @return MyMove
\*/
public function __construct(IDirection $left,$info) {
}

when I type
$move = new StepToLeft($x,

in the param info box: IDirection $left,string $info will be nicer then $left,$info

Posted by optik on December 10, 2008 at 01:07 AM CET #

To Stefan: It should be. If it's not working, probably you find a bug. But I think this is strange. It should work without a problem.

To Optik:
Good suggestion. We will try to implement this.

Thanks,
Petr

Posted by Petr on December 10, 2008 at 09:21 AM CET #

Can't find this functionality in the M1 build.

Posted by Mikhail Matveev on December 17, 2008 at 10:56 AM CET #

Misha, it has to be in the M1. The trunk was branched this morning. I have wrote the entry last week. If you are not able to find it, file a bug.

Thanks,
Petr

Posted by Petr on December 17, 2008 at 04:28 PM CET #

Hi
code completion for constructors not present in my build as well. After i type new Ctrl+space, Class names are shown in "completion options area" but without any parameter hints in front of the class name (not even when i use Ctrl+p)...

i guess i'm clear :|

:"-(

Product Version: NetBeans IDE 6.5.1 (Build 200903060201)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: E:\\Documents and Settings\\Dev\\.netbeans\\6.5

anyways, Thansk for the wonderful IDE :D its really cool

Posted by eAdd on June 01, 2009 at 08:55 AM 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