Bug 7505 - Class wizard does not add superclass import
Summary: Class wizard does not add superclass import
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-11 14:27 EST by John Arthorne CLA
Modified: 2002-01-24 07:08 EST (History)
0 users

See Also:


Attachments

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