Bug 7505

Summary: Class wizard does not add superclass import
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John Arthorne CLA 2002-01-11 14:27:21 EST
Build 2002-01-09
When I created a class using the Java Class wizard, (specifically extending the 
jface.Action class), the import for the super class was not automatically added 
to the new source file.
Comment 1 John Arthorne CLA 2002-01-22 12:59:12 EST
I noticed in the 2002-01-15 build that it does add the import statement, but it 
appears inside the copyright comment.  If I use the class wizard to create class 
B that extends class A in another package, it generates exactly the following 
(note the placement of the import statement):

/*

import org.foo.bar.A;
 * (c) Copyright 2001 MyCorporation.
 * All Rights Reserved.
 */
package org.goo.moo;

/**
 * @version 	1.0
 * @author
 */
public class B extends A {

}
Comment 2 Erich Gamma CLA 2002-01-23 08:41:34 EST
The comment problem is fixed in the 20020122 build.
The super class was imported in previous builds, need to investigate.
Comment 3 Martin Aeschlimann CLA 2002-01-24 07:08:21 EST
is fixed in 20122