Eclipse Usage and Tricks 15: auto-add non-implementation Method 1

Source: Internet
Author: User

Java code often implements some interfaces, and this is where Java code is unique. Implementation of the interface, it means to implement the method defined in this interface, if a one-way code out method needs to remember the method name, and so on, even if there is the content of auxiliary shortcut key Help, is also very troublesome. Here's a little tip that you can quickly implement all the methods of an interface definition in the current class, all of which are empty implementations. :-D
Step one: First code out the interface that needs to be implemented

Step two: Put the cursor on the line declaring the class, hold the Divine key: Ctrl+1, you can see the prompt to implement all methods

Step three: Choose to implement all methods, the class is generated in the interface of the method null implementation, next to the need to re-implement, more convenient

Previous article, Eclipse Usage and tricks 14: automatically generated TODO Note 2:
http://blog.csdn.net/ts1122/article/details/9009217
Next article, Eclipse Usage and tricks 16: Auto Add not implemented Method 2:
http://blog.csdn.net/ts1122/article/details/9116291

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Eclipse Usage and Tricks 15: auto-add non-implementation Method 1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.