use of org.eclipse.sirius.components.collaborative.dto.RepresentationRenamedEventPayload in project sirius-components by eclipse-sirius.
the class EditingContextEventProcessor method tryEmitRepresentationRenamedEvent.
private void tryEmitRepresentationRenamedEvent(UUID correlationId, String representationId, String newLabel) {
if (this.sink.currentSubscriberCount() > 0) {
EmitResult emitResult = this.sink.tryEmitNext(new RepresentationRenamedEventPayload(correlationId, representationId, newLabel));
if (emitResult.isFailure()) {
// $NON-NLS-1$
String pattern = "An error has occurred while emitting a RepresentationRenamedEventPayload: {}";
this.logger.warn(pattern, emitResult);
}
}
}
Aggregations