Bug 6758 Class name corrupted by creating member class using wizard
Build 20011206 - opened org.eclipse.ui.actions.DeleteResourceAction - using new class wizard, created member class named DeleteProjectDialog as a subclass of MessageDialog (in org.eclipse.jface.dialogs) - the result was: ... public class DeleteRes ourceAction extends SelectionListenerAction { public class DeleteProjectDialog extends MessageDialog { } ... Note the extra tab in DeleteResourceAction, and the strange formatting for the new class.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/TypePage.java
return status;
		}
		try {
			IType type= JavaModelUtil.findType(root.getJavaProject(), enclName);
			if (type == null) {
				status.setError(NewWizardMessages.getString("TypePage.error.EnclosingTypeNotExists")); 
				return status;
			}
			if (type.getCompilationUnit() == null) {
				status.setError(NewWizardMessages.getString("TypePage.error.EnclosingNotInCU")); 
				return status;
			}
			fCurrEnclosingType= type;
			return status;
		} catch (JavaModelException e) {
			status.setError(NewWizardMessages.getString("TypePage.error.EnclosingTypeNotExists")); 
			JavaPlugin.log(e.getStatus());
			return status;
		}
	}
	
	/**
	 * Called when the type name has changed.
	 * The method validates the type name and returns the status of the validation.
	 * Can be extended to add more validation
	 */
	protected IStatus typeNameChanged() {
		StatusInfo status= new StatusInfo();
		String typeName= getTypeName();