Project: JDT
Bug 133891 [extract superclass] should also work on types without methods
Reported: 2006-03-29 12:31:35 | Status: resolved fixed

20060329 create the folloing classes: --- package a.b.c.d; public class JavaEditorTests extends TestCase { } --- package a.b.c.d; public class PropertiesEditorTests extends TestCase { } ---- package a.b.c.d; public class TestCase { } - open refactoring menu on 'JavaEditorTests'. Create superclass is not available. - add a method to 'JavaEditorTests' now 'extract superclass' is available I think methods shouldn't be required for this refactoring Note that it is required to change the selection in the package explorer. Some state seems to be cached.

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/HierarchyProcessor.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractSupertypeMemberPage.java org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/PullUpMemberPage.java