[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Order of auto method insertion

Pete Ellis wrote:
Hello everyone,

When a new class is created that must implement an interface, the methods that are required by the interface are automatically added to the body of the new class. This is a fine convenience, however I find it a bit annoying that the interface's methods are added in alphabetical order, *not* the order in which they appear in the interface.

I've searched for a preference setting that might govern this behavior, but have thus far come up empty handed. Is there any way to influence how the order of these added methods is chosen?

Not that I know of. I'm not even sure it is possible in all cases, because I don't think the method order in class files is preserved from the source. Even when the source is available, it would require that Eclipse look there to get the method signatures, which I doubt it does currently.


Still, you are welcome to submit an enhancement request in Bugzilla. It is likely to get more attention if you can offer some assistance in implementing it.

Eric