A lookup containing various logical views of the underlying represented file.
The lookup is supposed to contain
this
FileObject(however not necessarily only one, possibly more). The identity of the
lookup should survive
#move(org.openide.filesystems.FileLock,org.openide.filesystems.FileObject,java.lang.String,java.lang.String)- the resulting
FileObject after successful
move
will share the same
Lookup as the original
FileObject.
That is why one can put
fileObject.getLookup()
into
java.util.IdentityHashMap and cache
Anything
regardless the actual location of (moved) file.
Or one can obtain a
Result from the
Lookup, keep
its reference, attach a listener to it and be assured that it
will fire events even if the file gets renamed.
Inside of NetBeans Platform application the content of this lookup is usually
identical to the one provided by the
DataObject.find(this).getLookup()
.
This functionality is provided by the org.netbeans.modules.settings
module.
DataObject.move
operation preserves the object's identity, and to mimic the same behavior
without reference to
DataObject
the behavior of
FileObject#getLookup() has
been modelled.