152153154155156157158159160161162
} // Prepare to show in UI fileWrapper.setComplete(false); fileWrapper.getFiles().add(image); imageEvent.fire(new ImageEvent(image)); // Delete temporary file try { fileHandler.delete(); } catch (Exception ioe) { log.log(Level.INFO, "error", ioe);
130131132133134135136137
albumAction.editAlbum(dropValue); } catch (Exception e) { error.fire(new ErrorEvent("Error:", Constants.ERROR_IN_DB + "<br/>" + e.getMessage())); return; } imageEvent.fire(new ImageEvent(dragValue, pathOld)); ApplicationUtils.addToRerender(Constants.TREE_ID); }
109110111112113114115
} catch (Exception e) { error.fire(new ErrorEvent("Error", Constants.IMAGE_DELETING_ERROR + " <br/>" + e.getMessage())); return; } // Raise 'imageDeleted' event, parameter path - path of file to delete imageEvent.fire(new ImageEvent(image, pathToDelete)); }