Project: JDT
Bug 110643 [API] NewClassCreationWizard needs to be API
Reported: 2005-09-26 13:42:54 | Status: closed fixed

We need a Java class creation wizard that we can a) launch programmatically and b) set and get the new class' name, package fragment, superclass, super interfaces, etc. (i.e., prime it before launch and retrieve values after finish). Unfortunately, in Eclipse 3.1 NewClassCreationWizard is not only internal (i.e., not API) but also does not provide the needed getters/setters. So, our current choices seem to be: a) subclass NewClassCreationWizard anyway and implement the needed getters/setters ourselves; or b) copy & paste the code from NewClassCreationWizard (and its superclass, NewElementWizard) to create our own class creation wizard (and implement the getters/setters we need). Neither of these choices are good. (We currently do the former.) In Eclipse 3.2 we'd like NewClassCreationWizard to be API and for it to support the getters/setters we need (i.e., give access to its "model").

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/IJavaHelpContextIds.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/ActionMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/AbstractOpenWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewAnnotationCreationWizard.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewClassCreationWizard.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewEnumCreationWizard.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewInterfaceCreationWizard.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewTypeDropDownAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenClassWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenInterfaceWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenJavaProjectWizardToolbarAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenPackageWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenPackageWizardToolbarAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenProjectWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/OpenTypeWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AbstractOpenWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewAnnotationWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewClassWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewEnumWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewInterfaceWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewJavaProjectWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewPackageWizardAction.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/OpenNewSourceFolderWizardAction.java