mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't allow to create libraries with duplicated names
This commit is contained in:
+1
@@ -102,6 +102,7 @@ public abstract class BaseLibrariesConfigurable extends BaseStructureConfigurabl
|
||||
@Override
|
||||
public void checkCanApply() throws ConfigurationException {
|
||||
super.checkCanApply();
|
||||
checkForEmptyAndDuplicatedNames("Library", CommonBundle.getErrorTitle(), LibraryConfigurable.class);
|
||||
for (LibraryConfigurable configurable : getLibraryConfigurables()) {
|
||||
if (configurable.getDisplayName().isEmpty()) {
|
||||
((LibraryProjectStructureElement)configurable.getProjectStructureElement()).navigate();
|
||||
|
||||
Reference in New Issue
Block a user