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 135513

Summary: Wrong position of method when using Implement all abstract methods
Product: java Reporter: Jan Becicka <jbecicka>
Component: EditorAssignee: Max Sauer <msauer>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 133913    

Description Jan Becicka 2008-05-21 15:40:38 UTC
I have class:
class A implements Runnable {
  void method1() {
  }
  
  void method2() {
  }
  
  class B {
  }
}

When I do Implement All Abstract Methods I see, that run() method is generated behind inner class B at the very end of
the class. But I would like to have this method added behind the last method (method2), not behind the last member.
Comment 1 Jan Lahoda 2008-05-21 15:45:56 UTC
GeneratorUtils.generateAllAbstractMethodImplementations in java.editor should use GeneratorUtilities.insertClassMembers
to insert members at correct places. Please check also other methods in GeneratorUtils.
Comment 2 Max Sauer 2008-07-01 15:21:14 UTC
http://hg.netbeans.org/main/rev/3f0e86a23766
Comment 3 Quality Engineering 2008-07-02 04:29:59 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #294 build
Changeset: http://hg.netbeans.org/main/rev/3f0e86a23766
User: Max Sauer <msauer@netbeans.org>
Log: #135513: Wrong position of method when using Implement all abstract methods