From 5b0ecda8b68369bff1e5d4e755560bd241fa2f6e Mon Sep 17 00:00:00 2001 From: Sergei Vorobyov Date: Wed, 9 Feb 2022 13:51:28 +0300 Subject: [PATCH] IDEA-288268 removed backward data propagation from advanced settings into name and location fields GitOrigin-RevId: 837870a4e326eb3befdeb6ce8585d81750120d6f --- .../generators/IntelliJNewProjectWizardStep.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/java/idea-ui/src/com/intellij/ide/projectWizard/generators/IntelliJNewProjectWizardStep.kt b/java/idea-ui/src/com/intellij/ide/projectWizard/generators/IntelliJNewProjectWizardStep.kt index bfd2932a99bd..f0c9ed4d00d5 100644 --- a/java/idea-ui/src/com/intellij/ide/projectWizard/generators/IntelliJNewProjectWizardStep.kt +++ b/java/idea-ui/src/com/intellij/ide/projectWizard/generators/IntelliJNewProjectWizardStep.kt @@ -16,14 +16,12 @@ import com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable import com.intellij.openapi.roots.ui.configuration.sdkComboBox import com.intellij.openapi.ui.ValidationInfo import com.intellij.openapi.ui.getPresentablePath -import com.intellij.openapi.util.io.FileUtil import com.intellij.ui.UIBundle import com.intellij.ui.dsl.builder.* import com.intellij.ui.dsl.gridLayout.HorizontalAlign import com.intellij.ui.layout.* import java.awt.event.KeyEvent import java.awt.event.KeyListener -import java.io.File abstract class IntelliJNewProjectWizardStep(val parent: ParentStep) : AbstractNewProjectWizardStep(parent), IntelliJNewProjectWizardData @@ -45,14 +43,6 @@ abstract class IntelliJNewProjectWizardStep(val parent: ParentStep) private var userDefinedContentRoot: Boolean = false private var userDefinedModuleFileLocation: Boolean = false - private fun suggestName(): String { - return File(FileUtil.toSystemDependentName(contentRoot)).name - } - - private fun suggestLocation(): String { - return FileUtil.toCanonicalPath(File(FileUtil.toSystemDependentName(contentRoot)).parent) - } - private fun suggestModuleName(): String { return parent.name } @@ -72,9 +62,6 @@ abstract class IntelliJNewProjectWizardStep(val parent: ParentStep) contentRootProperty.dependsOn(parent.pathProperty, ::suggestContentRoot) moduleFileLocationProperty.dependsOn(contentRootProperty, ::suggestModuleFilePath) - - parent.nameProperty.dependsOn(contentRootProperty, ::suggestName) - parent.pathProperty.dependsOn(contentRootProperty, ::suggestLocation) } override fun setupUI(builder: Panel) {