/** * Hook to be implemented in subclasses. Called by the framework after committing datasources. * The default implementation notifies about commit and calls {@link #postInit()} if the window is not closing. * * @param committed whether any data were actually changed and committed * @param close whether the window is going to be closed * @return true to continue, false to abort */ protected boolean postCommit(boolean committed, boolean close) { if (committed && !close) { if (showSaveNotification) { Entity entity = getItem(); MetadataTools metadataTools = getBeanLocator().get(MetadataTools.class); showNotification( messages.formatMainMessage("info.EntitySave", messages.getTools().getEntityCaption(entity.getMetaClass()), metadataTools.getInstanceName(entity)), NotificationType.TRAY); } postInit(); afterWindowApplyPostInit(); } return true; }