mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow module libraries without any classes ( IDEA-23835 )
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user