Minor: Fix facet/project settings editor
This commit is contained in:
+4
-4
@@ -208,10 +208,10 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable, Co
|
|||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public KotlinCompilerConfigurableTab(Project project) {
|
public KotlinCompilerConfigurableTab(Project project) {
|
||||||
this(project,
|
this(project,
|
||||||
KotlinCommonCompilerArgumentsHolder.Companion.getInstance(project).getSettings(),
|
(CommonCompilerArguments) KotlinCommonCompilerArgumentsHolder.Companion.getInstance(project).getSettings().unfrozen(),
|
||||||
Kotlin2JsCompilerArgumentsHolder.Companion.getInstance(project).getSettings(),
|
(K2JSCompilerArguments) Kotlin2JsCompilerArgumentsHolder.Companion.getInstance(project).getSettings().unfrozen(),
|
||||||
Kotlin2JvmCompilerArgumentsHolder.Companion.getInstance(project).getSettings(),
|
(K2JVMCompilerArguments) Kotlin2JvmCompilerArgumentsHolder.Companion.getInstance(project).getSettings().unfrozen(),
|
||||||
KotlinCompilerSettings.Companion.getInstance(project).getSettings(),
|
(CompilerSettings) KotlinCompilerSettings.Companion.getInstance(project).getSettings().unfrozen(),
|
||||||
ServiceManager.getService(project, KotlinCompilerWorkspaceSettings.class),
|
ServiceManager.getService(project, KotlinCompilerWorkspaceSettings.class),
|
||||||
true,
|
true,
|
||||||
false);
|
false);
|
||||||
|
|||||||
@@ -67,9 +67,9 @@ class KotlinFacetEditorGeneralTab(
|
|||||||
else {
|
else {
|
||||||
editableCommonArguments = configuration!!.settings.compilerArguments!!
|
editableCommonArguments = configuration!!.settings.compilerArguments!!
|
||||||
editableJvmArguments = editableCommonArguments as? K2JVMCompilerArguments
|
editableJvmArguments = editableCommonArguments as? K2JVMCompilerArguments
|
||||||
?: Kotlin2JvmCompilerArgumentsHolder.getInstance(project).settings
|
?: Kotlin2JvmCompilerArgumentsHolder.getInstance(project).settings.unfrozen() as K2JVMCompilerArguments
|
||||||
editableJsArguments = editableCommonArguments as? K2JSCompilerArguments
|
editableJsArguments = editableCommonArguments as? K2JSCompilerArguments
|
||||||
?: Kotlin2JsCompilerArgumentsHolder.getInstance(project).settings
|
?: Kotlin2JsCompilerArgumentsHolder.getInstance(project).settings.unfrozen() as K2JSCompilerArguments
|
||||||
editableCompilerSettings = configuration.settings.compilerSettings!!
|
editableCompilerSettings = configuration.settings.compilerSettings!!
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,10 +132,10 @@ class KotlinFacetEditorGeneralTab(
|
|||||||
compilerConfigurable.setTargetPlatform(chosenPlatform)
|
compilerConfigurable.setTargetPlatform(chosenPlatform)
|
||||||
compilerConfigurable.setEnabled(!useProjectSettings)
|
compilerConfigurable.setEnabled(!useProjectSettings)
|
||||||
if (useProjectSettings) {
|
if (useProjectSettings) {
|
||||||
compilerConfigurable.commonCompilerArguments = KotlinCommonCompilerArgumentsHolder.getInstance(project).settings
|
compilerConfigurable.commonCompilerArguments = KotlinCommonCompilerArgumentsHolder.getInstance(project).settings.unfrozen() as CommonCompilerArguments?
|
||||||
compilerConfigurable.k2jvmCompilerArguments = Kotlin2JvmCompilerArgumentsHolder.getInstance(project).settings
|
compilerConfigurable.k2jvmCompilerArguments = Kotlin2JvmCompilerArgumentsHolder.getInstance(project).settings.unfrozen() as K2JVMCompilerArguments?
|
||||||
compilerConfigurable.k2jsCompilerArguments = Kotlin2JsCompilerArgumentsHolder.getInstance(project).settings
|
compilerConfigurable.k2jsCompilerArguments = Kotlin2JsCompilerArgumentsHolder.getInstance(project).settings.unfrozen() as K2JSCompilerArguments?
|
||||||
compilerConfigurable.compilerSettings = KotlinCompilerSettings.getInstance(project).settings
|
compilerConfigurable.compilerSettings = KotlinCompilerSettings.getInstance(project).settings.unfrozen() as CompilerSettings?
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
compilerConfigurable.commonCompilerArguments = editableCommonArguments
|
compilerConfigurable.commonCompilerArguments = editableCommonArguments
|
||||||
|
|||||||
Reference in New Issue
Block a user