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
LayoutUtil.setWidthHint(fPackageDialogField.getTextControl(null), getMaxFieldWidth());	
	}
	/**
	 * Creates the controls for the enclosing type name field.
	 * @param composite The parent composite
	 * @param nColumns Number of columns to span
	 */		
	protected void createEnclosingTypeControls(Composite composite, int nColumns) {
		fEnclosingTypeSelection.doFillIntoGrid(composite, 1);
		
		Control c= fEnclosingTypeDialogField.getTextControl(composite);
		MGridData gd= new MGridData(MGridData.FILL_HORIZONTAL);
		gd.widthHint= getMaxFieldWidth();
		gd.horizontalSpan= 2;
		c.setLayoutData(gd);
		
		c= fEnclosingTypeDialogField.getChangeControl(composite);
		c.setLayoutData(new MGridData(MGridData.HORIZONTAL_ALIGN_FILL));
	}	
	/**
	 * Creates the controls for the type name field.
	 * @param composite The parent composite
	 * @param nColumns Number of columns to span
	 */		
	protected void createTypeNameControls(Composite composite, int nColumns) {
		fTypeNameDialogField.doFillIntoGrid(composite, nColumns - 1);
		DialogField.createEmptySpace(composite);
		
		LayoutUtil.setWidthHint(fTypeNameDialogField.getTextControl(null), getMaxFieldWidth());
	}