This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239616 - write back class method from TIP
Summary: write back class method from TIP
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 15:47 UTC by kastin
Modified: 2014-01-06 12:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (107.67 KB, text/plain)
2013-12-18 15:47 UTC, kastin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kastin 2013-12-18 15:47:44 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Linux version 3.2.0-55-generic-pae running on i386
Java; VM; Vendor = 1.7.0_25
Runtime = OpenJDK Client VM 23.7-b01

LANG: PHP

I have Singleton class "S". When I want to get instance of S, I put "S::getInstance();". 
 But lets write sth like that: "S::getInstance;" (without brackets);

1) I click: "S::{here}getInstance;", then "Ctril+SPACE" to get TIP window, I see "getInstance()".
2) I type "ENTER" selected method (in TIP) to add brackets after my "S::getInstance;"
3) Instead of "S::getInstance();" I have: "S::getInstance()getInstance;".

Before editor put method from TIP, It could be check if this method was added there (it yes, only compleate it - in my case just add "()").
Comment 1 kastin 2013-12-18 15:47:48 UTC
Created attachment 143308 [details]
IDE log
Comment 2 Ondrej Brejla 2014-01-06 12:13:52 UTC
Same behavior as is in Java editor, it's there for years. P4. Thanks.