当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
FileReference (NetBeans VCS API) - NetBeans API Javadoc 4.1.0
org.netbeans.modules.vcscore
Class FileReference
java.lang.Object
java.lang.ref.Reference
java.lang.ref.WeakReference
org.netbeans.modules.vcscore.FileReference
- public final class FileReference
- extends WeakReference
FileObject reference with properties. It has longer or
the same lifetime (defined by AbstractFileSystem & GC)
as referent FileObject.
It keeps last virtual
property state. It allows VFS
to kick up loaders layer on the property change. This nasty
dependency on loaders layer cannot be resolved on loaders layer
itself because VFS.children() returns the same result, same
fileobjects. No FS API event for this property exists that
loaders follow.
Method Summary |
void |
setVirtual(boolean virtual)
|
boolean |
wasVirtual()
Return previous (when reported from VFS.children()) fileobject virtual property state . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileReference
public FileReference(FileObject referent)
wasVirtual
public boolean wasVirtual()
- Return previous (when reported from VFS.children()) fileobject virtual property state .
setVirtual
public void setVirtual(boolean virtual)