mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
DataSourceStorage — do not use Project.DIRECTORY_STORE_FOLDER
This commit is contained in:
@@ -231,12 +231,9 @@ abstract class ProjectStoreBase(override final val project: ProjectImpl) : Compo
|
||||
return FileUtil.isAncestor(PathUtilRt.getParentPath(projectFilePath), filePath, false)
|
||||
}
|
||||
|
||||
override fun getDirectoryStoreFile(): VirtualFile? {
|
||||
if (!isDirectoryBased) {
|
||||
return null
|
||||
}
|
||||
return PathUtilRt.getParentPath(projectFilePath).nullize()?.let { LocalFileSystem.getInstance().findFileByPath(it) }
|
||||
}
|
||||
override fun getDirectoryStorePath() = if (!isDirectoryBased) null else PathUtilRt.getParentPath(projectFilePath).nullize()
|
||||
|
||||
override fun getDirectoryStoreFile() = directoryStorePath?.let { LocalFileSystem.getInstance().findFileByPath(it) }
|
||||
}
|
||||
|
||||
private open class ProjectStoreImpl(project: ProjectImpl, private val pathMacroManager: PathMacroManager) : ProjectStoreBase(project) {
|
||||
|
||||
+3
@@ -58,4 +58,7 @@ public interface IProjectStore extends IComponentStore {
|
||||
|
||||
@Nullable
|
||||
VirtualFile getDirectoryStoreFile();
|
||||
|
||||
@Nullable
|
||||
String getDirectoryStorePath();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user