/** Marks a resource as hidden. It will not be listed in the list of files. * Uses createMaskOn method to determine on which filesystem to mark the file. * * @param res resource name of file to hide or show * @param hide true if we should hide the file/false otherwise * @exception IOException if it is not possible */ protected final void hideResource(String res, boolean hide) throws IOException { if (hide) { // mask file maskFile(createWritableOn(res), res); } else { unmaskFile(createWritableOn(res), res); } }
getMultiFileSystem().maskFile(simple, chlds[i].getPath());
getMultiFileSystem().maskFile(simple, getPath()); updateFoldersLock(getParent());
void handleDelete(FileLock lock) throws IOException { if (parent == null) { throw new FSException(NbBundle.getMessage(MultiFileObject.class, "EXC_CannotDeleteRoot", getMultiFileSystem().getDisplayName())); } MultiFileSystem fs = getMultiFileSystem(); try { getFileSystem().beginAtomicAction(); synchronized (parent) { String fullName = getPath(); FileSystem single = fs.createWritableOn(fullName); if (needsMask(lock, true)) { getMultiFileSystem().maskFile(single, fullName); updateFoldersLock(getParent()); } String n = name; validFlag = false; /** [PENDING] expected rename of some refresh method */ //parent.internalRefresh (null, n, true, false, null); parent.refresh(null, n, true, false); if (hasAtLeastOneListeners()) { fileDeleted0(new FileEvent(this)); } } } finally { getFileSystem().finishAtomicAction(); } }
getMultiFileSystem().maskFile(single, oldFullName); updateFoldersLock(getParent());
/** Marks a resource as hidden. It will not be listed in the list of files. * Uses createMaskOn method to determine on which filesystem to mark the file. * * @param res resource name of file to hide or show * @param hide true if we should hide the file/false otherwise * @exception IOException if it is not possible */ protected final void hideResource (String res, boolean hide) throws IOException { if (hide) { // mask file maskFile (createWritableOn (res), res); } else { unmaskFile (createWritableOn (res), res); } }
/** Marks a resource as hidden. It will not be listed in the list of files. * Uses createMaskOn method to determine on which filesystem to mark the file. * * @param res resource name of file to hide or show * @param hide true if we should hide the file/false otherwise * @exception IOException if it is not possible */ protected final void hideResource (String res, boolean hide) throws IOException { if (hide) { // mask file maskFile (createWritableOn (res), res); } else { unmaskFile (createWritableOn (res), res); } }
void handleDelete (FileLock lock) throws IOException { if (parent == null) { FSException.io ( "EXC_CannotDeleteRoot", getMultiFileSystem ().getDisplayName () // NOI18N ); } MultiFileSystem fs = getMultiFileSystem (); try { getFileSystem ().beginAtomicAction (); synchronized (parent) { String fullName = getPath (); FileSystem single = fs.createWritableOn (fullName); if (needsMask (lock, true)) { getMultiFileSystem ().maskFile (single, fullName); updateFoldersLock (getParent ()); } String n = name; validFlag = false; /** [PENDING] expected rename of some refresh method */ //parent.internalRefresh (null, n, true, false, null); parent.refresh (null, n, true, false); if (hasAtLeastOneListeners ()) { fileDeleted0 (new FileEvent(this)); } } } finally { getFileSystem ().finishAtomicAction (); } }
void handleDelete (FileLock lock) throws IOException { if (parent == null) { FSException.io ( "EXC_CannotDeleteRoot", getMultiFileSystem ().getDisplayName () // NOI18N ); } MultiFileSystem fs = getMultiFileSystem (); try { getFileSystem ().beginAtomicAction (); synchronized (parent) { String fullName = getPath (); FileSystem single = fs.createWritableOn (fullName); if (needsMask (lock, true)) { getMultiFileSystem ().maskFile (single, fullName); updateFoldersLock (getParent ()); } String n = name; validFlag = false; /** [PENDING] expected rename of some refresh method */ //parent.internalRefresh (null, n, true, false, null); parent.refresh (null, n, true, false); if (hasAtLeastOneListeners ()) { fileDeleted0 (new FileEvent(this)); } } } finally { getFileSystem ().finishAtomicAction (); } }
getMultiFileSystem ().maskFile (simple, getPath ()); updateFoldersLock (getParent ());
getMultiFileSystem ().maskFile (simple, getPath ()); updateFoldersLock (getParent ());
getMultiFileSystem ().maskFile (simple, chlds[i].getPath());
getMultiFileSystem ().maskFile (simple, chlds[i].getPath());
getMultiFileSystem ().maskFile (single, oldFullName); updateFoldersLock (getParent ());
getMultiFileSystem ().maskFile (single, oldFullName); updateFoldersLock (getParent ());