/** * End of priority atomic actions. Atomic actions from inside of org.openide.FileSystems * are considered as priority atomic actions. From last priority atomic actions * are fired events regardless if nested in any normal atomic action. * * End of block, that should be performed without firing events. * Firing of events is postponed after end of block . * There is strong necessity to use always both methods: beginAtomicAction * and finishAtomicAction. It is recommended use it in try - finally block. * @see FileSystemt#finishAtomicAction */ void finishAtomicAction() { exitAtomicAction(true); }
/** Executes atomic action. The atomic action represents a set of * operations constituting one logical unit. It is guaranteed that during * execution of such an action no events about changes in the filesystem * will be fired.*/ void runAtomicAction(final FileSystem.AtomicAction run) throws IOException { try { enterAtomicAction(run, false); run.run(); } finally { exitAtomicAction(false); } }
/** * End of priority atomic actions. Atomic actions from inside of org.openide.FileSystems * are considered as priority atomic actions. From last priority atomic actions * are fired events regardless if nested in any normal atomic action. * * End of block, that should be performed without firing events. * Firing of events is postponed after end of block . * There is strong necessity to use always both methods: beginAtomicAction * and finishAtomicAction. It is recomended use it in try - finally block. * @see FileSystemt#finishAtomicAction */ void finishAtomicAction () { exitAtomicAction (true); }
/** * End of priority atomic actions. Atomic actions from inside of org.openide.FileSystems * are considered as priority atomic actions. From last priority atomic actions * are fired events regardless if nested in any normal atomic action. * * End of block, that should be performed without firing events. * Firing of events is postponed after end of block . * There is strong necessity to use always both methods: beginAtomicAction * and finishAtomicAction. It is recomended use it in try - finally block. * @see FileSystemt#finishAtomicAction */ void finishAtomicAction () { exitAtomicAction (true); }
/** Executes atomic action. The atomic action represents a set of * operations constituting one logical unit. It is guaranteed that during * execution of such an action no events about changes in the filesystem * will be fired.*/ void runAtomicAction (final FileSystem.AtomicAction run) throws IOException { try { enterAtomicAction (run, false); run.run (); } finally { exitAtomicAction (false); } }
/** Executes atomic action. The atomic action represents a set of * operations constituting one logical unit. It is guaranteed that during * execution of such an action no events about changes in the filesystem * will be fired.*/ void runAtomicAction (final FileSystem.AtomicAction run) throws IOException { try { enterAtomicAction (run, false); run.run (); } finally { exitAtomicAction (false); } }