void () { myWizardContext.setProjectName(getProjectName()); final String projectFileDirectory = getProjectFileDirectory(); myWizardContext.setProjectFileDirectory(projectFileDirectory); ProjectBuilder moduleBuilder = myWizardContext.getProjectBuilder(); if (moduleBuilder != null) { myWizardContext.setProjectBuilder(moduleBuilder); if (moduleBuilder instanceof ModuleBuilder) { // no SourcePathsBuilder here ! ((ModuleBuilder)moduleBuilder).setContentEntryPath(projectFileDirectory); } else if (moduleBuilder instanceof ProjectFromSourcesBuilderImpl) { ((ProjectFromSourcesBuilderImpl)moduleBuilder).setBaseProjectPath(projectFileDirectory); } } myFormatPanel.updateData(myWizardContext); }