Search in sources :

Example 1 with RepresentationRenamedEventPayload

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);
        }
    }
}
Also used : RepresentationRenamedEventPayload(org.eclipse.sirius.components.collaborative.dto.RepresentationRenamedEventPayload) EmitResult(reactor.core.publisher.Sinks.EmitResult)

Aggregations

RepresentationRenamedEventPayload (org.eclipse.sirius.components.collaborative.dto.RepresentationRenamedEventPayload)1 EmitResult (reactor.core.publisher.Sinks.EmitResult)1