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

Summary: Wrap generated getters + setters, and hashCode() + equals() to //<editor-fold>
Product: java Reporter: pekarna <pekarna>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.