Bug 6965 - Use selected class as super class
Summary: Use selected class as super class
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-14 15:43 EST by Victor Lewis CLA
Modified: 2002-05-04 14:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.