/** * Called when a file is deleted. * * @param event The FileChangeEvent. * @throws Exception if an error occurs. */ @Override public void fileDeleted(final FileChangeEvent event) throws Exception { if (event.getFile() != file) { return; } if (!ignoreEvent) { handleDelete(); } }
/** * Called when a file is deleted. * * @param event The FileChangeEvent. * @throws Exception if an error occurs. */ @Override public void fileDeleted(final FileChangeEvent event) throws Exception { if (event.getFile() != file) { return; } if (!ignoreEvent) { handleDelete(); } }
/** * Called when a file is deleted. * * @param event The FileChangeEvent. * @throws Exception if an error occurs. */ @Override public void fileDeleted(final FileChangeEvent event) throws Exception { if (event.getFile() != file) { return; } if (!ignoreEvent) { handleDelete(); } }
/** * Called when a file is deleted. * @param event The FileChangeEvent. * @throws Exception if an error occurs. */ @Override public void fileDeleted(final FileChangeEvent event) throws Exception { if (event.getFile() != file) { return; } if (!ignoreEvent) { handleDelete(); } }
/** * Checks whether the file's type has changed, and fires the appropriate events. * * @param oldType The old FileType. * @throws Exception if an error occurs. */ private void maybeTypeChanged(final FileType oldType) throws Exception { final FileType newType = doGetType(); if (oldType == FileType.IMAGINARY && newType != FileType.IMAGINARY) { handleCreate(newType); } else if (oldType != FileType.IMAGINARY && newType == FileType.IMAGINARY) { handleDelete(); } }
/** * Checks whether the file's type has changed, and fires the appropriate events. * * @param oldType The old FileType. * @throws Exception if an error occurs. */ private void maybeTypeChanged(final FileType oldType) throws Exception { final FileType newType = doGetType(); if (oldType == FileType.IMAGINARY && newType != FileType.IMAGINARY) { handleCreate(newType); } else if (oldType != FileType.IMAGINARY && newType == FileType.IMAGINARY) { handleDelete(); } }
/** * Checks whether the file's type has changed, and fires the appropriate events. * * @param oldType The old FileType. * @throws Exception if an error occurs. */ private void maybeTypeChanged(final FileType oldType) throws Exception { final FileType newType = doGetType(); if (oldType == FileType.IMAGINARY && newType != FileType.IMAGINARY) { handleCreate(newType); } else if (oldType != FileType.IMAGINARY && newType == FileType.IMAGINARY) { handleDelete(); } }
/** * Checks whether the file's type has changed, and fires the appropriate * events. * @param oldType The old FileType. * @throws Exception if an error occurs. */ private void maybeTypeChanged(final FileType oldType) throws Exception { final FileType newType = doGetType(); if (oldType == FileType.IMAGINARY && newType != FileType.IMAGINARY) { handleCreate(newType); } else if (oldType != FileType.IMAGINARY && newType == FileType.IMAGINARY) { handleDelete(); } }