/** * Return the revived file from the MFS * @return the revived file, if the operation succeeds. * @throws IOException from the deletion of the masking file. */ @Override public FileObject call() throws IOException { if (maskFile.isValid()) { maskFile.delete(); } return MultiFileObject.this.getFileObject(maskFile.getNameExt()); }
private void refreshAfterEvent(FileEvent fe) { FileObject fFile = fe.getFile(); superRefresh(false); MultiFileObject mFile = (MultiFileObject) getFileObject(fFile.getName(), fFile.getExt()); if (mFile != null) { mFile.superRefresh(false); } }
/** Fired when a file is changed. * @param fe the event describing context where action has taken place */ public void fileChanged(FileEvent fe) { FileObject changedFile = this; if (fe.getSource().equals(leader) && hasAtLeastOneListeners() && !fe.firedFrom(markAtomicAction)) { /**There should not dissapear information about source and changed file*/ if (!fe.getFile().equals(fe.getSource())) { changedFile = getFileObject(fe.getFile().getName(), fe.getFile().getExt()); } /**fileChanged1 - should not fire event for this.getParent (). * I think that already bottom layer forked event.*/ /** [PENDING] fix of #16926, #16895. But there should be investigated * why this MFO doesn`t know about child ?*/ if (changedFile != null) { fileChanged1(new FileEvent(this, changedFile, fe.getTime())); } } }
if (this.getFileObject(name, ext) != null) { throw new FSException(NbBundle.getMessage(MultiFileObject.class, "EXC_DataAlreadyExist", n, fs.getDisplayName(), getPath()));
if (this.getFileObject(name) != null) { throw new FSException(NbBundle.getMessage(MultiFileObject.class, "EXC_FolderAlreadyExist", name, fs.getDisplayName(), getPath()));
private void refreshAfterEvent (FileEvent fe) { FileObject fFile = fe.getFile(); superRefresh(false); MultiFileObject mFile = (MultiFileObject)getFileObject(fFile.getName(),fFile.getExt()); if (mFile != null) mFile.superRefresh(false); }
private void refreshAfterEvent (FileEvent fe) { FileObject fFile = fe.getFile(); superRefresh(false); MultiFileObject mFile = (MultiFileObject)getFileObject(fFile.getName(),fFile.getExt()); if (mFile != null) mFile.superRefresh(false); }
/** Fired when a file is changed. * @param fe the event describing context where action has taken place */ public void fileChanged(FileEvent fe) { FileObject changedFile = this; if (fe.getSource().equals(leader) && hasAtLeastOneListeners() && !fe.firedFrom(markAtomicAction)) { /**There should not dissapear information about source and changed file*/ if (!fe.getFile().equals(fe.getSource())) changedFile = getFileObject(fe.getFile().getName(), fe.getFile().getExt()); /**fileChanged1 - should not fire event for this.getParent (). * I think that already bottom layer forked event.*/ /** [PENDING] fix of #16926, #16895. But there should be investigated * why this MFO doesn`t know about child ?*/ if (changedFile != null) fileChanged1(new FileEvent(this,changedFile, fe.getTime())); } }
/** Fired when a file is changed. * @param fe the event describing context where action has taken place */ public void fileChanged(FileEvent fe) { FileObject changedFile = this; if (fe.getSource().equals(leader) && hasAtLeastOneListeners() && !fe.firedFrom(markAtomicAction)) { /**There should not dissapear information about source and changed file*/ if (!fe.getFile().equals(fe.getSource())) changedFile = getFileObject(fe.getFile().getName(), fe.getFile().getExt()); /**fileChanged1 - should not fire event for this.getParent (). * I think that already bottom layer forked event.*/ /** [PENDING] fix of #16926, #16895. But there should be investigated * why this MFO doesn`t know about child ?*/ if (changedFile != null) fileChanged1(new FileEvent(this,changedFile, fe.getTime())); } }
FSException.io ("EXC_FoNotFolder", n, getPath(), fs.getDisplayName ()); // NOI18N if (this.getFileObject (name, ext) != null) FSException.io ("EXC_DataAlreadyExist", n, fs.getDisplayName ()); // NOI18N
FSException.io ("EXC_FoNotFolder", n, getPath(), fs.getDisplayName ()); // NOI18N if (this.getFileObject (name, ext) != null) FSException.io ("EXC_DataAlreadyExist", n, fs.getDisplayName ()); // NOI18N
FSException.io ("EXC_FoNotFolder", name, getPath(), fs.getDisplayName ()); // NOI18N if (this.getFileObject (name) != null) FSException.io ("EXC_FolderAlreadyExist", name, fs.getDisplayName ()); // NOI18N
FSException.io ("EXC_FoNotFolder", name, getPath(), fs.getDisplayName ()); // NOI18N if (this.getFileObject (name) != null) FSException.io ("EXC_FolderAlreadyExist", name, fs.getDisplayName ()); // NOI18N