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 - Wrong position of method when using Implement all abstract methods
Summary: Wrong position of method when using Implement all abstract methods
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks: 133913
  Show dependency tree
 
Reported: 2008-05-21 15:40 UTC by Jan Becicka
Modified: 2008-07-02 04:29 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 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