Bug 84556 New type wizard generates uncompilable code
HEAD: the package declaration is located after the import declarations Steps to reproduce: - Create class HashedMap which extends Map (don't use the default package) - Set options to implement methods and constructors
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java
}
			}
		}
	}
	/*
	 * Called from createType to construct the source for this type
	 */		
	private String constructTypeStub(ImportsManager imports, String lineDelimiter) {	
		StringBuffer buf= new StringBuffer();
			
		int modifiers= getModifiers();
		buf.append(Flags.toString(modifiers));
		if (modifiers != 0) {
			buf.append(' ');
		}
		String type=""; 
		switch (fTypeKind) {
			case CLASS_TYPE: type= "class "; break; 
			case INTERFACE_TYPE: type= "interface "; break; 
			case ENUM_TYPE: type= "enum "; break; 
			case ANNOTATION_TYPE: type= "@interface "; break; 
		}
		buf.append(type);
		buf.append(getTypeName());
		writeSuperClass(buf, imports);
		writeSuperInterfaces(buf, imports);	
		buf.append('{');
		buf.append(lineDelimiter);
		buf.append(lineDelimiter);
		buf.append('}');