|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.modules.vcscore.turbo.RepositoryFiles
Keeps track of all recently known repository files. It's primary storage of such information.
The information persists, it's held by a FolderPropepties attribute.
One prominent client is FileSystem impl that must orchestrate with this class to provide stored files as virtual FileObjects.
Field Summary | |
static int |
FILE_MASK
|
static int |
FOLDER_MASK
|
static Map |
scheduledRemovals
Keeps scheduled removals FileObject(folder), Set<String> |
Method Summary | |
void |
addFileObject(String fileName,
int mask)
Registers new repository file. |
void |
commitRemoved()
Must be called from FS.children to assure consistency see #53079. |
static RepositoryFiles |
forFolder(FileObject fo)
Get RepositoryFiles for given folder. |
boolean |
isFolder(String fileName)
Classify given (registered) file. |
void |
removeFileObject(String fileName)
Unregisters a repository file. |
Iterator |
virtualsIterator()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FOLDER_MASK
public static final int FILE_MASK
public static Map scheduledRemovals
Method Detail |
public static RepositoryFiles forFolder(FileObject fo)
public void addFileObject(String fileName, int mask)
fileName
- mask
- union of *_MASK
constancspublic void removeFileObject(String fileName)
public void commitRemoved()
public boolean isFolder(String fileName) throws IllegalStateException
IllegalStateException
- if given file is not tracked in virtual files
it probbaly means that it's uncatched external removal (e.g. empty folder pruning on cvs checkout)public Iterator virtualsIterator()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |