How to implement unimplemented methods to all child classes in eclipse

前端 未结 3 675
离开以前
离开以前 2021-01-02 06:30

As you know, eclipse provides with a nice way to implement unimplemented methods if a child class does not have them implemented. Is there any way to apply this to all child

3条回答
  •  余生分开走
    2021-01-02 06:40

    select the top level package in your package explorer. Go to the 'Problems' view. There should be the list of errors of "The type Foo must implement the inherited abstract method Parent.foo()" (for given class/method names). Right click on the error, select "Quick Fix". You can select the "Add unimplemented methods" option and click the "Select All Button" to select all the child classes.

    EDIT: This works even for multiple methods per parent class.

提交回复
热议问题