mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-288268 removed backward data propagation from advanced settings into name and location fields
GitOrigin-RevId: 837870a4e326eb3befdeb6ce8585d81750120d6f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
86a02f235a
commit
5b0ecda8b6
-13
@@ -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<ParentStep>(val parent: ParentStep) :
|
||||
AbstractNewProjectWizardStep(parent), IntelliJNewProjectWizardData
|
||||
@@ -45,14 +43,6 @@ abstract class IntelliJNewProjectWizardStep<ParentStep>(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<ParentStep>(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) {
|
||||
|
||||
Reference in New Issue
Block a user