From 3d5007c1a5024fe0f1e379880c078224e0aba479 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Thu, 23 Jan 2020 00:33:58 +0300 Subject: [PATCH] Wizard: temporary hide sourcesets editing for users --- .../ui/secondStep/modulesEditor/TargetsModel.kt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/idea/idea-new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/wizard/ui/secondStep/modulesEditor/TargetsModel.kt b/idea/idea-new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/wizard/ui/secondStep/modulesEditor/TargetsModel.kt index 24e491e1adf..f3c8adf3e3c 100644 --- a/idea/idea-new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/wizard/ui/secondStep/modulesEditor/TargetsModel.kt +++ b/idea/idea-new-project-wizard/src/org/jetbrains/kotlin/tools/projectWizard/wizard/ui/secondStep/modulesEditor/TargetsModel.kt @@ -38,11 +38,13 @@ class TargetsModel( moduleToAdd.subModules.forEach { subModule -> add(subModule, this) } - moduleToAdd.sourcesets.forEach { sourceset -> - val sourcesetNode = DefaultMutableTreeNode(sourceset) - add(sourcesetNode) - pathsToExpand += TreePath(sourcesetNode.path) - } + // sourcesets for now does not provide functionality except storing dependencies + // so, there is no reason for now to show them for user + /* moduleToAdd.sourcesets.forEach { sourceset -> + val sourcesetNode = DefaultMutableTreeNode(sourceset) + add(sourcesetNode) + pathsToExpand += TreePath(sourcesetNode.path) + }*/ } }