Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-generate Interface in eclipse

I have a class in eclipse and will write an interface for it.

Is it possible, just like when auto generating getter/setter, to auto generate an interface form the class?

I appreciate your answer!!!

btw my eclipse version is indigo...

like image 969
maximus Avatar asked Sep 25 '12 10:09

maximus


2 Answers

Alt+Shift+T and "Extract interface"

like image 146
Jan Hruby Avatar answered Oct 18 '22 12:10

Jan Hruby


No need to click on only class name Just Right click any where in the class. goto refractor select "Extract Interface"

like image 38
Jaini Naveen Avatar answered Oct 18 '22 11:10

Jaini Naveen