/** 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())); } } }
/** is file event originated by this Creator? */ public static boolean isFiredFromMe (FileEvent fe) { return fe.firedFrom(me); } }
private void changed(FileEvent fe) { //System.err.println("changed on disk in " + Thread.currentThread().getName() + " for " + this); //Thread.dumpStack(); synchronized (this) { if (fe.firedFrom(this)) { //System.err.println("(my own change)"); return; } problem = null; dirty = false; root = null; } pcs.firePropertyChange(PROP_DOCUMENT_ROOT, null, null); } }
@Override protected boolean isValid(FileEvent fileEvent) { boolean valid = !fileEvent.firedFrom(RemoteClient.DOWNLOAD_ATOMIC_ACTION); if (valid) { // #202673 LOGGER.log(Level.FINE, "FS event fired from thread: {0}", Thread.currentThread().getName()); } return valid; }
public void fileChanged (FileEvent fe) { if (! fe.firedFrom (editorSupport.getAtomicSaveAction ())) reloadDesign (); }
private void change(FileEvent fe) { synchronized (saveActions) { for (AtomicAction a : saveActions) { if (fe.firedFrom(a)) { return;
/** 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())); } }