Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 135513 - Wrong position of method when using Implement all abstract methods
Wrong position of method when using Implement all abstract methods
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Editor
6.x
All All
: P3 (vote)
: 6.x
Assigned To: Max Sauer
issues@java
:
Depends on:
Blocks: 133913
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo