mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't allow to create artifacts with duplicated names (IDEA-135636)
This commit is contained in:
+2
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.openapi.roots.ui.configuration.artifacts;
|
||||
|
||||
import com.intellij.CommonBundle;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.DefaultActionGroup;
|
||||
@@ -294,6 +295,7 @@ public class ArtifactsStructureConfigurable extends BaseStructureConfigurable {
|
||||
@Override
|
||||
public void apply() throws ConfigurationException {
|
||||
myPackagingEditorContext.saveEditorSettings();
|
||||
checkForEmptyAndDuplicatedNames("Artifact", CommonBundle.getErrorTitle(), ArtifactConfigurableBase.class);
|
||||
super.apply();
|
||||
|
||||
myPackagingEditorContext.getManifestFilesInfo().saveManifestFiles();
|
||||
|
||||
Reference in New Issue
Block a user