From b3edec3560000b277ea20b9c082e959d7348a865 Mon Sep 17 00:00:00 2001 From: anna Date: Thu, 29 Apr 2010 18:31:54 +0400 Subject: [PATCH] allow module libraries without any classes ( IDEA-23835 ) --- .../openapi/roots/ui/configuration/ClasspathPanel.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ClasspathPanel.java b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ClasspathPanel.java index 9d04aa700dbd..4c066b5b0a69 100644 --- a/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ClasspathPanel.java +++ b/java/idea-ui/src/com/intellij/openapi/roots/ui/configuration/ClasspathPanel.java @@ -1032,13 +1032,9 @@ public class ClasspathPanel extends JPanel { final Module contextModule = DataKeys.MODULE_CONTEXT.getData(DataManager.getInstance().getDataContext(myParent)); editor.addFileChooserContext(LangDataKeys.MODULE_CONTEXT, contextModule); myIsOk = editor.openDialog(myParent, Collections.singletonList(library), true) != null; - if (myIsOk && library.getUrls(OrderRootType.CLASSES).length > 0) { + if (myIsOk) { myChosenLibrary = library; } - else { - myChosenLibrary = null; - libraryModifiableModel.removeLibrary(library); - } } public boolean isOK() {