Bug 6965

Summary: Use selected class as super class
Product: [Eclipse Project] JDT Reporter: Victor Lewis <vlewis>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Victor Lewis CLA 2001-12-14 15:43:47 EST
I would like to see the the class that is selected become the default super 
class in the New Class dialog when the dialog is started from fith clicking on 
a class in the Packages, Outline or Hierarchy views.

Alternatly a "Create new subclass" mention option in the above contexts.
Comment 1 Martin Aeschlimann CLA 2001-12-18 10:29:45 EST
This is already possible: The 'New class wizard' initializes the super class if 
the currently selected element is a class.
Note that when you select a Compilation Unit, the initial selection is set to 
the same package as the Compilation Unit.
Comment 2 Victor Lewis CLA 2002-01-15 13:06:14 EST
I am now using build 20011219.

The 'New Class Wizard' dialog will fill in the name of the class that is in the 
Hierarchy View if that view is selected.  But what if you use the right click 
menu on a class in the Package View and select New->Java Class then the super 
class is still java.lang.Object (although the package is set to the package of 
the selected class.
Comment 3 Erich Gamma CLA 2002-05-04 14:17:27 EDT
You can select a type (not the Compilation Unit) in the packages view. In this 
case the type is used as the base class.