public final class SharabilityQuery
extends java.lang.Object
This query can be considered to obsolete FileObject.setImportant(boolean).
Unlike that method, the information is pulled by the VCS filesystem on
demand, which may be more reliable than ensuring that the information
is pushed by a project type (or other implementor) eagerly.
SharabilityQueryImplementation2| Modifier and Type | Class | Description |
|---|---|---|
static class |
SharabilityQuery.Sharability |
Sharability constants.
|
| Modifier and Type | Field | Description |
|---|---|---|
static int |
MIXED |
Deprecated.
Use
SharabilityQuery.Sharability.MIXED instead. |
static int |
NOT_SHARABLE |
Deprecated.
Use
SharabilityQuery.Sharability.NOT_SHARABLE instead. |
static int |
SHARABLE |
Deprecated.
Use
SharabilityQuery.Sharability.SHARABLE instead. |
static int |
UNKNOWN |
Deprecated.
Use
SharabilityQuery.Sharability.UNKNOWN instead. |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getSharability(java.io.File file) |
Deprecated.
Use
getSharability(java.net.URI) instead. |
static SharabilityQuery.Sharability |
getSharability(java.net.URI uri) |
Check whether an existing file is sharable.
|
static SharabilityQuery.Sharability |
getSharability(org.openide.filesystems.FileObject fo) |
Check whether an existing file is sharable.
|
@Deprecated public static final int UNKNOWN
SharabilityQuery.Sharability.UNKNOWN instead.@Deprecated public static final int SHARABLE
SharabilityQuery.Sharability.SHARABLE instead.@Deprecated public static final int NOT_SHARABLE
SharabilityQuery.Sharability.NOT_SHARABLE instead.@Deprecated public static final int MIXED
SharabilityQuery.Sharability.MIXED instead.@Deprecated public static int getSharability(java.io.File file)
getSharability(java.net.URI) instead.file - a file or directory (may or may not already exist); should be normalizedUNKNOWNpublic static SharabilityQuery.Sharability getSharability(java.net.URI uri)
uri - a file or directory (may or may not already exist); should be normalized.UNKNOWNpublic static SharabilityQuery.Sharability getSharability(org.openide.filesystems.FileObject fo)
fo - a file or directory; should be normalized.UNKNOWNBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.