SharabilityQueryImplementation2
instead.@Deprecated public interface SharabilityQueryImplementation
Could be implemented e.g. by project types which know that certain files or folders in
a project (e.g. src/
) are intended for VCS sharing while others
(e.g. build/
) are not.
Note that the Project API module registers a default implementation of this query which delegates to the project which owns the queried file, if there is one. This is more efficient than searching instances in global lookup, so use that facility wherever possible.
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.
SharabilityQuery
,
AntProjectHelper.createSharabilityQuery(...)
Modifier and Type | Method and Description |
---|---|
int |
getSharability(File file)
Deprecated.
Check whether a file or directory should be shared.
|
int getSharability(File file)
file
- a normalized
file to check for sharability (may or may not yet exist)SharabilityQuery
's constants