Bug 6009 New class wizard doesn't get context right for nested classes
Build 20011106. - with a .java file open in the editor, - click the new class button - check "Enclosing Type" - the field is blank - it should default to the current type in the editor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
}
		} else {
			IPackageFragment currPack= getPackageFragment();
			if (type == null && currPack != null) {
				String packName= currPack.getElementName();
				
				if (!currPack.isDefaultPackage()) {
					type= JavaModelUtil.findType(jproject, packName, sclassName);
				}
				
				if (type == null && !"java.lang".equals(packName)) { 
					type= JavaModelUtil.findType(jproject, "java.lang", sclassName); 
				}
			}
			
			if (type == null) {
				type= JavaModelUtil.findType(jproject, sclassName);
			}
		}
		return type;
	}		
	
	/**
	 * Called when the list of super interface has changed.
	 * The method validates the superinterfaces and returns the status of the validation.
	 * Can be extended to add more validation.
	 */
	protected IStatus superInterfacesChanged() {
		StatusInfo status= new StatusInfo();