|
org.netbeans.modules.versioning.core/1 1.5.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.versioning.core.spi.VCSContext
public final class VCSContext
This encapsulates a context, typically set of selected files or nodes. Context is passed to VCSAnnotators when asked for actions available on a given context or to annotate a name (label) representing a context.
| Nested Class Summary | |
|---|---|
static interface |
VCSContext.FileFilter
A VCSFileProxy analogy to FileFilter |
| Field Summary | |
|---|---|
static VCSContext |
EMPTY
VCSContext that contains no files. |
| Method Summary | |
|---|---|
Set<VCSFileProxy> |
computeFiles(VCSContext.FileFilter filter)
Returns the smallest possible set of all files that lie under Root files and are NOT under some Excluded file. |
boolean |
contains(VCSFileProxy file)
Determines whether the supplied VCSFileProxy is contained in this context. |
static VCSContext |
forNodes(Node[] nodes)
Initializes the context from array of nodes (typically currently activated nodes). |
Lookup |
getElements()
Retrieves elements that make up this VCS context. |
Set<VCSFileProxy> |
getExclusions()
Retrieves set of files/folders that are excluded from this context. |
Set<VCSFileProxy> |
getFiles()
Retrieves set of files/folders that represent this context. |
Set<VCSFileProxy> |
getRootFiles()
Retrieves set of root files/folders that represent this context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final VCSContext EMPTY
| Method Detail |
|---|
public static VCSContext forNodes(Node[] nodes)
nodes - array of Nodes
public Set<VCSFileProxy> computeFiles(VCSContext.FileFilter filter)
filter - custom file filter
public Lookup getElements()
public Set<VCSFileProxy> getFiles()
getRootFiles()public Set<VCSFileProxy> getRootFiles()
getFiles()public Set<VCSFileProxy> getExclusions()
public boolean contains(VCSFileProxy file)
file - a VCSFileProxy to test
|
org.netbeans.modules.versioning.core/1 1.5.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||