CollocationQueryImplementation2
instead.@Deprecated public interface CollocationQueryImplementation
This should be treated as a heuristic, useful when deciding whether to use absolute or relative links between path locations.
The file names might refer to nonexistent files. A provider may or may not be able to say anything useful about them in this case.
File names passed to this query will already have been normalized according to
the semantics of FileUtil.normalizeFile(java.io.File)
.
Threading note: implementors should avoid acquiring locks that might be held
by other threads. Generally treat this interface similarly to SPIs in
org.openide.filesystems
with respect to threading semantics.
CollocationQuery
Modifier and Type | Method and Description |
---|---|
boolean |
areCollocated(File file1,
File file2)
Deprecated.
Check whether two files are logically part of one directory tree.
|
File |
findRoot(File file)
Deprecated.
Find a root of a logical tree containing this file, if any.
|
boolean areCollocated(File file1, File file2)
CVSROOT
) they might be considered collocated.
If they are to be collocated their absolute paths must share a
prefix directory, i.e. they must be located in the same filesystem root.
If nothing is known about them, return false.file1
- one filefile2
- another fileFile findRoot(File file)
file
- a file on disk (must be an absolute URI)Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.