Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 9798

Summary: Request: Refactor should extract interface from class [refactoring]
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: akiezun, as, carl, mkm, mlq.eclipse, renaud+eclipse, sgeertgens
Version: 2.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Peter Burka CLA 2002-02-13 18:10:05 EST
It would be nice if there were a refactor option to extract the public methods 
of my class and turn them into an interface.  The operation should allow me to 
select which methods to extract, it should change my class to implement the new 
interface, and optionally replace references to my class with references to the 
new interface.

This would be useful in situations where I've created an abstract superclass, 
but decide later that it might make more sense for the class to be an 
interface.  Examples of this pattern in Eclipse include Action/IAction and 
Container/IContainer.
Comment 1 Erich Gamma CLA 2002-02-14 16:06:14 EST
we would like to have this one as well, but we can't commit it for 2.0 
Comment 2 Adam Kiezun CLA 2002-02-27 11:53:48 EST
*** Bug 10051 has been marked as a duplicate of this bug. ***
Comment 3 Adam Kiezun CLA 2002-04-22 04:32:33 EDT
*** Bug 14293 has been marked as a duplicate of this bug. ***
Comment 4 Dirk Baeumer CLA 2002-05-03 09:19:20 EDT
Definitely postponed > 2.0. But if somebody is interested in implementing it 
feel free to contact me.
Comment 5 Dirk Baeumer CLA 2002-08-14 08:21:35 EDT
Reopen for investigation
Comment 6 Dirk Baeumer CLA 2002-08-14 08:22:35 EDT
Adam, please investigate for 2.x
Comment 7 Adam Kiezun CLA 2002-08-28 11:49:50 EDT
first version released