简体   繁体   中英

Eclipse automatic abstract method generator

In my eclipse project, I am making a bunch of classes that implement interfaces. When I check the box in the Create new class window, that says inherit abstract methods, or when I click on the name and say inherit abstract methods, it generates method stubs for those methods that need to be implemented. But the problem is, the argument names it generates are not correct. Eg the parameters are called sender , cmd , label , and args , but they are generated as arg0 , arg1 , arg2 , and arg3 . I've added the javadocs for the libraries that contain those interfaces, and I can confirm that they are because when i hover over the method name it shows me the correct arguments, but they still wont generate the names right. I'd like to know if there's a way to change or fix this.

I figured it out. Once I added the source, (for me it was a local folder) then it loaded the correct names.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM