Project: JDT
Bug 120851 NewTypeWizardPage doesnt add imports of contributed type content
Reported: 2005-12-14 07:26:38 | Status: resolved fixed

Extending on the NewTypeWizardPage and wanting to provide my own content for the type, I overrode 'constructCUContent(cu, typeContent, delimiter)' and passed in the typeContent which included the correct imports. Even though the correct imports were passed in, the ImportsManager doesnt add them finally to the document. How does one add imports to the provided content?

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java