X

An Oracle blog about NetBeans for PHP

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.

Join the discussion

Comments ( 9 )
  • Martijn Tuesday, December 9, 2008

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


  • Stefan Sturm Tuesday, December 9, 2008

    Hello,

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

    Greetings,

    Stefan Sturm


  • Petr Tuesday, December 9, 2008

    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


  • Stefan Sturm Tuesday, December 9, 2008

    @Petr:

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

    Greetings,

    Urkman


  • optik Wednesday, December 10, 2008

    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


  • Petr Wednesday, December 10, 2008

    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


  • Mikhail Matveev Wednesday, December 17, 2008

    Can't find this functionality in the M1 build.


  • Petr Wednesday, December 17, 2008

    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


  • eAdd Monday, June 1, 2009

    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


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