public interface VirtualFilePointerContainer
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String url) |
void |
add(VirtualFile file) |
void |
addAll(VirtualFilePointerContainer that) |
void |
addJarDirectory(java.lang.String directoryUrl,
boolean recursively)
Adds
directory as a root of jar files. |
void |
clear() |
VirtualFilePointerContainer |
clone(Disposable parent) |
VirtualFilePointerContainer |
clone(Disposable parent,
VirtualFilePointerListener listener) |
VirtualFilePointer |
findByUrl(java.lang.String url) |
VirtualFile [] |
getDirectories() |
VirtualFile [] |
getFiles() |
java.util.List<Pair<java.lang.String,java.lang.Boolean>> |
getJarDirectories()
Returns list of (directory url, isRecursive) which were added via
addJarDirectory(String, boolean) } |
java.util.List<VirtualFilePointer> |
getList() |
java.lang.String [] |
getUrls() |
boolean |
isEmpty() |
void |
killAll() |
void |
moveDown(java.lang.String url) |
void |
moveUp(java.lang.String url) |
void |
readExternal(Element rootChild,
java.lang.String childElementName,
boolean externalizeJarDirectories)
For example, to read from the xml below, call
readExternal(myRootTag, "childElementName"); |
void |
remove(VirtualFilePointer pointer) |
boolean |
removeJarDirectory(java.lang.String directoryUrl)
Removes
directory from the roots of jar files. |
int |
size() |
void |
writeExternal(Element element,
java.lang.String childElementName,
boolean externalizeJarDirectories) |
void killAll()
void add(VirtualFile file)
void add(java.lang.String url)
void remove(VirtualFilePointer pointer)
java.util.List<VirtualFilePointer> getList()
void addAll(VirtualFilePointerContainer that)
java.lang.String [] getUrls()
boolean isEmpty()
VirtualFile [] getFiles()
VirtualFile [] getDirectories()
VirtualFilePointer findByUrl(java.lang.String url)
void clear()
int size()
void readExternal(Element rootChild, java.lang.String childElementName, boolean externalizeJarDirectories) throws InvalidDataException
readExternal(myRootTag, "childElementName");
<myroot>
<childElementName url="xxx1"/>
<childElementName url="xxx2"/>
</myroot>
InvalidDataException
void writeExternal(Element element, java.lang.String childElementName, boolean externalizeJarDirectories)
void moveUp(java.lang.String url)
void moveDown(java.lang.String url)
VirtualFilePointerContainer clone(Disposable parent)
VirtualFilePointerContainer clone(Disposable parent, VirtualFilePointerListener listener)
void addJarDirectory(java.lang.String directoryUrl, boolean recursively)
directory
as a root of jar files.
After this call the getFiles()
will additionally return jar files in this directory
(and, if recursively
was set, the jar files in all-subdirectories).
getUrls()
will additionally return the directoryUrl
.boolean removeJarDirectory(java.lang.String directoryUrl)
directory
from the roots of jar files.
After that the getFiles()
and getUrls()
etc will not return jar files in this directory anymore.java.util.List<Pair<java.lang.String,java.lang.Boolean>> getJarDirectories()
addJarDirectory(String, boolean)
}