Summary: | Use selected class as super class | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Victor Lewis <vlewis> |
Component: | UI | Assignee: | 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
2001-12-14 15:43:47 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. 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. You can select a type (not the Compilation Unit) in the packages view. In this case the type is used as the base class. |