@Deprecated // have to override for compat public void setImportant(boolean b) { Enumeration<FileObject> en = delegates(); while (en.hasMoreElements()) { FileObject fo = en.nextElement(); fo.setImportant(b); } if (!b) { getMultiFileSystem().markUnimportant(this); } }
public final void refresh(boolean expected) { if (!isInitialized() && isFolder()) { return; } Enumeration<FileObject> en = delegates(); while (en.hasMoreElements()) { FileObject fo = en.nextElement(); fo.refresh(expected); } super.refresh(expected); }
Set<String> addSet = new HashSet<String>(101); Enumeration<FileObject> it = delegates();
public synchronized FileLock lock() throws IOException { if (lock != null) { FileLock f = (FileLock) lock.get(); if (f != null) { FileAlreadyLockedException alreadyLockedException = new FileAlreadyLockedException(getPath()); alreadyLockedException.initCause(lockedBy); throw alreadyLockedException; } } Set<? extends FileSystem> set = getMultiFileSystem().createLocksOn(getPath()); MfLock l = new MfLock(leader, delegates(), set); lock = new WeakReference<MfLock>(l); assert (lockedBy = new Throwable("Locked by:")) != null; //NOI18N return l; }
public void setImportant (boolean b) { Enumeration en = delegates (); while (en.hasMoreElements ()) { FileObject fo = (FileObject)en.nextElement (); fo.setImportant (b); } if (!b) { getMultiFileSystem ().markUnimportant (this); } }
public void setImportant (boolean b) { Enumeration en = delegates (); while (en.hasMoreElements ()) { FileObject fo = (FileObject)en.nextElement (); fo.setImportant (b); } if (!b) { getMultiFileSystem ().markUnimportant (this); } }
public final void refresh(boolean expected) { if (!isInitialized () && isFolder ()) return; Enumeration en = delegates (); while (en.hasMoreElements()) { FileObject fo = (FileObject)en.nextElement(); fo.refresh (expected); } super.refresh (expected); }
public final void refresh(boolean expected) { if (!isInitialized () && isFolder ()) return; Enumeration en = delegates (); while (en.hasMoreElements()) { FileObject fo = (FileObject)en.nextElement(); fo.refresh (expected); } super.refresh (expected); }
HashSet addSet = new HashSet (101); Enumeration it = delegates (); while (it.hasMoreElements()) { // cycle 1 FileObject folder = (FileObject)it.nextElement ();
HashSet addSet = new HashSet (101); Enumeration it = delegates (); while (it.hasMoreElements()) { // cycle 1 FileObject folder = (FileObject)it.nextElement ();
public synchronized FileLock lock () throws IOException { if (lock != null) { FileLock f = (FileLock)lock.get (); if (f != null) { // [PENDING] construct localized message throw new FileAlreadyLockedException (getPath ()); } } java.util.Set set = getMultiFileSystem ().createLocksOn (getPath ()); FileLock l = new MfLock (leader, delegates (), set); lock = new WeakReference (l); // Thread.dumpStack (); // System.out.println ("Locking file: " + this); // NOI18N return l; }
public synchronized FileLock lock () throws IOException { if (lock != null) { FileLock f = (FileLock)lock.get (); if (f != null) { // [PENDING] construct localized message throw new FileAlreadyLockedException (getPath ()); } } java.util.Set set = getMultiFileSystem ().createLocksOn (getPath ()); FileLock l = new MfLock (leader, delegates (), set); lock = new WeakReference (l); // Thread.dumpStack (); // System.out.println ("Locking file: " + this); // NOI18N return l; }