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
public IType getCreatedType() {
		return fCreatedType;
	}
	
	
		
	private void writeSuperClass(StringBuffer buf, ImportsManager imports) {
		String typename= getSuperClass();
		if (fTypeKind == CLASS_TYPE && typename.length() > 0 && !"java.lang.Object".equals(typename)) { 
			buf.append(" extends "); 
			
			String qualifiedName= fSuperClass != null ? JavaModelUtil.getFullyQualifiedName(fSuperClass) : typename; 
			buf.append(imports.addImport(qualifiedName));
		}
	}
	
	private void writeSuperInterfaces(StringBuffer buf, ImportsManager imports) {
		List interfaces= getSuperInterfaces();
		int last= interfaces.size() - 1;
		if (last >= 0) {
		    if (fTypeKind != INTERFACE_TYPE) {
				buf.append(" implements "); 
			} else {
				buf.append(" extends "); 
			}
			for (int i= 0; i <= last; i++) {
				String typename= (String) interfaces.get(i);
				buf.append(imports.addImport(typename));
				if (i < last) {
					buf.append(',');