/** Tests the lock if it is valid, if not throws exception. * @param l lock to test */ private void testLock(FileLock l) throws IOException { if (lock == null) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_InvalidLock", l, getPath(), getAbstractFileSystem().getDisplayName(), lock)); } if (lock.get() != l) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_InvalidLock", l, getPath(), getAbstractFileSystem().getDisplayName(), lock.get())); } }
throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", fs.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FisRO", name, fs.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FoNotFolder", n, getPath(), fs.getDisplayName()));
throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", fs.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FisRO", name, fs.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FoNotFolder", name, getPath(), fs.getDisplayName()));
public void rename(FileLock lock, String name, String ext) throws IOException { if (parent == null) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_CannotRenameRoot", getAbstractFileSystem().getDisplayName())); ) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_CannotRenameFromTo", getPath(), getAbstractFileSystem().getDisplayName(), name + "." + ext)); getPath(), getAbstractFileSystem().getDisplayName(), newFullName)); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", getAbstractFileSystem().getDisplayName()));
throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", abstractFS.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FisRO", target.getPath(), abstractFS.getDisplayName()));
throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_CannotDeleteRoot", fs.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FSisRO", abstractFS.getDisplayName())); throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_FisRO", target.getPath(), abstractFS.getDisplayName()));
void handleDelete(FileLock lock) throws IOException { if (parent == null) { throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_CannotDeleteRoot", getAbstractFileSystem().getDisplayName()));
/** Tests the lock if it is valid, if not throws exception. * @param l lock to test */ private void testLock (FileLock l) throws java.io.IOException { if (lock == null) FSException.io ("EXC_InvalidLock", l, getPath (), getAbstractFileSystem ().getDisplayName (), lock); // NOI18N if (lock.get () != l) FSException.io ("EXC_InvalidLock", l, getPath (), getAbstractFileSystem ().getDisplayName (), lock.get ()); // NOI18N }
/** Tests the lock if it is valid, if not throws exception. * @param l lock to test */ private void testLock (FileLock l) throws java.io.IOException { if (lock == null) FSException.io ("EXC_InvalidLock", l, getPath (), getAbstractFileSystem ().getDisplayName (), lock); // NOI18N if (lock.get () != l) FSException.io ("EXC_InvalidLock", l, getPath (), getAbstractFileSystem ().getDisplayName (), lock.get ()); // NOI18N }
AbstractFileSystem fs = getAbstractFileSystem (); if (fs.isReadOnly()) { FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N FSException.io("EXC_FisRO", name, fs.getDisplayName ()); // NOI18N FSException.io ("EXC_FoNotFolder", n, getPath(), fs.getDisplayName ()); // NOI18N
AbstractFileSystem fs = getAbstractFileSystem (); if (fs.isReadOnly()) { FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N FSException.io("EXC_FisRO", name, fs.getDisplayName ()); // NOI18N FSException.io ("EXC_FoNotFolder", n, getPath(), fs.getDisplayName ()); // NOI18N
public void rename(FileLock lock, String name, String ext) throws IOException { if (parent == null) { FSException.io ("EXC_CannotRenameRoot", getAbstractFileSystem ().getDisplayName ()); // NOI18N FSException.io ("EXC_CannotRename", getPath (), getAbstractFileSystem ().getDisplayName (), name + "." + ext); // NOI18N FSException.io ("EXC_CannotRename", getPath (), getAbstractFileSystem ().getDisplayName (), newFullName); // NOI18N FSException.io ("EXC_FSisRO", getAbstractFileSystem ().getDisplayName ()); // NOI18N
public void rename(FileLock lock, String name, String ext) throws IOException { if (parent == null) { FSException.io ("EXC_CannotRenameRoot", getAbstractFileSystem ().getDisplayName ()); // NOI18N FSException.io ("EXC_CannotRename", getPath (), getAbstractFileSystem ().getDisplayName (), name + "." + ext); // NOI18N FSException.io ("EXC_CannotRename", getPath (), getAbstractFileSystem ().getDisplayName (), newFullName); // NOI18N FSException.io ("EXC_FSisRO", getAbstractFileSystem ().getDisplayName ()); // NOI18N
AbstractFileSystem fs = getAbstractFileSystem (); if (fs.isReadOnly()) { FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N FSException.io("EXC_FisRO", name, fs.getDisplayName ()); // NOI18N FSException.io ("EXC_FoNotFolder", name, getPath(), fs.getDisplayName ()); // NOI18N
AbstractFileSystem fs = getAbstractFileSystem (); if (fs.isReadOnly()) { FSException.io("EXC_FSisRO", fs.getDisplayName ()); // NOI18N FSException.io("EXC_FisRO", name, fs.getDisplayName ()); // NOI18N FSException.io ("EXC_FoNotFolder", name, getPath(), fs.getDisplayName ()); // NOI18N
FSException.io ("EXC_FSisRO", abstractFS.getDisplayName ()); // NOI18N FSException.io ("EXC_FisRO", target.getPath (), abstractFS.getDisplayName ()); // NOI18N
FSException.io ("EXC_CannotDeleteRoot", fs.getDisplayName ()); // NOI18N FSException.io ("EXC_FSisRO", abstractFS.getDisplayName ()); // NOI18N FSException.io ("EXC_FisRO", target.getPath (), abstractFS.getDisplayName ()); // NOI18N
FSException.io ("EXC_FSisRO", abstractFS.getDisplayName ()); // NOI18N FSException.io ("EXC_FisRO", target.getPath (), abstractFS.getDisplayName ()); // NOI18N
void handleDelete (FileLock lock) throws IOException { if (parent == null) { FSException.io ("EXC_CannotDeleteRoot", getAbstractFileSystem ().getDisplayName ()); // NOI18N
void handleDelete (FileLock lock) throws IOException { if (parent == null) { FSException.io ("EXC_CannotDeleteRoot", getAbstractFileSystem ().getDisplayName ()); // NOI18N