mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
eclipse: use var in library source root if var is used in class root
This commit is contained in:
@@ -91,15 +91,7 @@ public class EclipseModuleManager {
|
||||
myEclipseUrls.add(url);
|
||||
}
|
||||
|
||||
public void registerEclipseLibSrcUrl(String srcUrl) {
|
||||
myEclipseUrls.add(SRC_PREFIX + srcUrl);
|
||||
}
|
||||
|
||||
public boolean isEclipseLibUrl(String url) {
|
||||
return myEclipseUrls.contains(url);
|
||||
}
|
||||
|
||||
public boolean isEclipseLibSrcUrl(String url) {
|
||||
return myEclipseUrls.contains(SRC_PREFIX + url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,7 +182,6 @@ public class EclipseClasspathReader {
|
||||
if (sourcePath != null) {
|
||||
final String srcUrl = expandEclipsePath2Url(sourcePath, rootModel, myCurrentRoots);
|
||||
modifiableModel.addRoot(srcUrl, OrderRootType.SOURCES);
|
||||
eclipseModuleManager.registerEclipseLibSrcUrl(srcUrl);
|
||||
}
|
||||
|
||||
EJavadocUtil.appendJavadocRoots(element, rootModel, myCurrentRoots, modifiableModel);
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ public class EclipseClasspathWriter {
|
||||
srcRelativePath = EPathUtil.collapse2EclipsePath(srcFile, myModel);
|
||||
if (eclipseVariablePath != null) {
|
||||
eclipseSrcVariablePath = eclipseModuleManager.getEclipseSrcVariablePath(srcFile);
|
||||
if (eclipseSrcVariablePath == null && !eclipseModuleManager.isEclipseLibSrcUrl(srcFile)) {
|
||||
if (eclipseSrcVariablePath == null) {
|
||||
eclipseSrcVariablePath = "/" + EPathUtil.collapse2EclipseVariabledPath(libraryOrderEntry);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user