|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A query which should typically be provided by a VCS to give information about whether some files can be considered part of one logical directory tree.
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
Method Summary | |
boolean |
areCollocated(File file1,
File file2)
Check whether two files are logically part of one directory tree. |
File |
findRoot(File file)
Find a root of a logical tree containing this file, if any. |
Method Detail |
public 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 file
public File findRoot(File file)
file
- a file on disk (must be an absolute URI)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |