Sort methods in the same order as the implementation interface in Eclipse

I am looking for a way to sort methods in a class in the same way that they are ordered in the interface that they override.

This is a class that implements only methods from one interface, so they should not have any problems.

I found the main sort function from Eclipse, but as I understand it, it can only be sorted by method type and method name.

Any ideas? Eclipse plugins?

Thank!

+5
source share
1 answer

If you can also change the source of the interface, use Source-> Sort members to both the interface and the class . Subsequently, they have the same order of methods.

, , , ,

  • , , , .
  • , , .
+1

All Articles