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 198616 - Wrong indentation of first method after getter and setter generation
Summary: Wrong indentation of first method after getter and setter generation
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-15 22:08 UTC by maghiel
Modified: 2011-06-18 16:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maghiel 2011-05-15 22:08:43 UTC
I'm not sure if this is only happening in the php editor but:

After invoking "Getter and Setter generation" after pressing alt+insert,
indendation of the first method does not follow the code layout rules.

Steps to reproduce:
Create a class with this code:
<?php
class newPHPClass
{
    protected $_foo;
        
}
?>

* Press alt+insert and choose "Getter and Setter generation"
* Check _foo and choose "Remove underscore" at method naming style and click ok.
* Expected result:
class newPHPClass
{
    protected $_foo;
    
    public function getFoo()     
    {
        return $this->_foo;
    }

    public function setFoo($_foo)
    {
        $this->_foo = $_foo;
    }


}
* Actual result:
class newPHPClass
{
    protected $_foo;
    
    public function getFoo()     {
        return $this->_foo;
    }

    public function setFoo($_foo)
    {
        $this->_foo = $_foo;
    }


}


This issue has been around for a long time already, just didnt submit it yet :p

Environment:
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-7160-on-20110507)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Windows 7 version 6.1 running on x86; Cp1252; nl_NL (nb)
Userdir: C:\Users\maghiel\.netbeans\dev
Comment 1 Petr Pisl 2011-06-06 15:34:39 UTC
To reporter: Don't hesitate and enter bug at the moment when you run an issue.:)

Fixed in web-main and releases/release701 branch.
Comment 2 Quality Engineering 2011-06-07 06:30:23 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/
User: 
Log:
Comment 3 maghiel 2011-06-18 16:12:59 UTC
@Petr: I don't hesitate, but sometimes I just don't have the time to search for similar bugs and file a report ;) 

Anyway, verified fixed in: 
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-7200-on-20110515)
Java: 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b14
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: C:\Users\maghiel\.netbeans\dev