@Override public boolean isShowing(NotificationEvent event) { for (PopupHandle handle : activeNotifications) { if (handle.event.equals(event)) { return true; } } return false; }
private String getCommitDescription( ResourceAddedEvent event ) { if ( event.getMessage() != null ) { return event.getMessage(); } return ""; }
public RemoteCallback<Path> getSaveSuccessCallback(final int newHash) { return new RemoteCallback<Path>() { @Override public void callback(final Path path) { baseView.hideBusyIndicator(); versionRecordManager.reloadVersions(path); notification.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemSavedSuccessfully())); setOriginalHash(newHash); } }; }
private boolean assertHasAllChanges(Collection<ResourceChange> changes, ResourceChangeType... changeTypes) { for (ResourceChangeType changeType : changeTypes) { if (!changes.stream() .filter(resourceChange -> resourceChange.getType().equals(changeType)) .findFirst().isPresent()) { return false; } } return true; }
@Override public String toString() { return "ResourceCopiedEvent{" + "sourcePath=" + sourcePath + ", destinationPath=" + getDestinationPath() + ", message=" + getMessage() + ", sessionInfo=" + sessionInfo + '}'; } }
private String getCommitDescription( ResourceUpdatedEvent event ) { if ( event.getMessage() != null ) { return event.getMessage(); } return ""; }
@Override public String toString() { return "ResourceDeletedEvent{" + "path=" + path + ", message=" + getMessage() + ", sessionInfo=" + sessionInfo + '}'; } }
public RemoteCallback<Path> getSaveSuccessCallback(final int newHash) { return new RemoteCallback<Path>() { @Override public void callback(final Path path) { baseView.hideBusyIndicator(); versionRecordManager.reloadVersions(path); notification.fire(new NotificationEvent(CommonConstants.INSTANCE.ItemSavedSuccessfully())); setOriginalHash(newHash); } }; }
@Override public String toString() { return "ResourceAddedEvent{" + "path=" + path + ", message=" + getMessage() + ", sessionInfo=" + sessionInfo + '}'; } }
@Override public boolean isShowing( final NotificationEvent event ) { for ( PopupHandle handle : activeNotifications ) { if ( handle.event.equals( event ) ) { return true; } } return false; }
@Override public void displayNotification(final String text) { notification.fire(new NotificationEvent(text)); } }
@Override public boolean isShowing(NotificationEvent event) { for (PopupHandle handle : activeNotifications) { if (handle.event.equals(event)) { return true; } } return false; }
@Override public void callback(Boolean result) { if (result) notification.fire(new NotificationEvent("Form persisted OK!", NotificationEvent.NotificationType.SUCCESS)); else notification.fire(new NotificationEvent("Something wrong happened persisting form", NotificationEvent.NotificationType.ERROR)); } }).persistContext(context.getCtxUID());
@Override public void displayNotification(String text) { notification.fire(new NotificationEvent(text)); } }
@Override public void displayNotification(final String text) { notification.fire(new NotificationEvent(text)); } }
@Override public void displayNotification(String text) { notification.fire(new NotificationEvent(text)); } }
public void displayNotification(String text) { notification.fire(new NotificationEvent(text, NotificationEvent.NotificationType.SUCCESS)); } }
@Override public void displayNotification(String text) { notification.fire(new NotificationEvent(text)); }
@Override public void displayNotification( String text ) { notification.fire( new NotificationEvent( text ) ); }