mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+6
-4
@@ -110,10 +110,13 @@ public class EclipseClasspathStorageProvider implements ClasspathStorageProvider
|
||||
}
|
||||
|
||||
static CachedXmlDocumentSet getFileCache(final Module module) {
|
||||
CachedXmlDocumentSet fileCache = EclipseModuleManager.getInstance(module).getDocumentSet();
|
||||
final EclipseModuleManager moduleManager = EclipseModuleManager.getInstance(module);
|
||||
CachedXmlDocumentSet fileCache = moduleManager != null ? moduleManager.getDocumentSet() : null;
|
||||
if (fileCache == null) {
|
||||
fileCache = new CachedXmlDocumentSet(module.getProject());
|
||||
EclipseModuleManager.getInstance(module).setDocumentSet(fileCache);
|
||||
if (moduleManager != null) {
|
||||
moduleManager.setDocumentSet(fileCache);
|
||||
}
|
||||
registerFiles(fileCache, module, ClasspathStorage.getModuleDir(module), ClasspathStorage.getStorageRootFromOptions(module));
|
||||
fileCache.preload();
|
||||
}
|
||||
@@ -158,8 +161,7 @@ public class EclipseClasspathStorageProvider implements ClasspathStorageProvider
|
||||
}
|
||||
|
||||
public CachedXmlDocumentSet getFileSet() {
|
||||
CachedXmlDocumentSet fileCache = EclipseModuleManager.getInstance(module).getDocumentSet();
|
||||
return fileCache != null ? fileCache : getFileCache(module);
|
||||
return getFileCache(module);
|
||||
}
|
||||
|
||||
public Set<String> getClasspath(ModifiableRootModel model, final Element element) throws IOException, InvalidDataException {
|
||||
|
||||
Reference in New Issue
Block a user