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 225681 - Wrap generated getters + setters, and hashCode() + equals() to //<editor-fold>
Summary: Wrap generated getters + setters, and hashCode() + equals() to //<editor-fold>
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-04 05:31 UTC by pekarna
Modified: 2013-02-04 05:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pekarna 2013-02-04 05:31:23 UTC
Every time I let NetBeans generate getters and setters and hashCode() and equals(), I immediately select both and wrap to a fold:

    //<editor-fold defaultstate="collapsed" desc="get/set">
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    ...
    //</editor-fold>


    //<editor-fold defaultstate="collapsed" desc="hash/eq">
    @Override public int hashCode() { ... }
    
    @Override public boolean equals(Object obj) {
         ...
    }
    //</editor-fold>

It would be pleasant if NetBeans did this automatically.