站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended byjava.lang.ref.Reference
      extended byjava.lang.ref.WeakReference
          extended byorg.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.


Constructor Summary
FileReference(FileObject referent)
           
 
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.ref.Reference
clear, enqueue, get, isEnqueued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileReference

public FileReference(FileObject referent)
Method Detail

wasVirtual

public boolean wasVirtual()
Return previous (when reported from VFS.children()) fileobject virtual property state .


setVirtual

public void setVirtual(boolean virtual)

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.