mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-62874: Unable to create a Module Library containing Jar Directories [rev by Pegov]
This commit is contained in:
@@ -30,6 +30,7 @@ import com.intellij.openapi.roots.ModuleRootManager;
|
||||
import com.intellij.openapi.roots.ModuleRootModel;
|
||||
import com.intellij.openapi.roots.OrderEntry;
|
||||
import com.intellij.openapi.roots.impl.ModuleRootManagerImpl;
|
||||
import com.intellij.openapi.roots.impl.libraries.LibraryTableBase;
|
||||
import com.intellij.openapi.roots.libraries.Library;
|
||||
import com.intellij.openapi.roots.libraries.LibraryTable;
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
@@ -427,7 +428,7 @@ public abstract class ModuleEditor implements Place.Navigator, Disposable {
|
||||
new LibraryInvocationHandler((Library)result));
|
||||
}
|
||||
else if (result instanceof LibraryTable.ModifiableModel) {
|
||||
return Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{LibraryTable.ModifiableModel.class},
|
||||
return Proxy.newProxyInstance(getClass().getClassLoader(), new Class[]{LibraryTableBase.ModifiableModelEx.class},
|
||||
new LibraryTableModelInvocationHandler((LibraryTable.ModifiableModel)result));
|
||||
}
|
||||
if (result instanceof Library[]) {
|
||||
|
||||
Reference in New Issue
Block a user