public static void addListener(@NotNull MessageBusClient.ProjectClient client, @NotNull Object listenerOwner, @NotNull Listener listener) { addListener(client, TOPIC, listener, Listener.class, listenerOwner); } }
@Override public void handleOnDisconnectError(@NotNull ConnectionException e) { LOG.warn("Closing the connection to the Perforce server generated an error", e); P4WarningMessage.sendDisconnectCausedError(project, e); }
public static void sendDisconnectCausedError(@NotNull Project project, @NotNull ConnectionException e) { if (canSendMessage(project)) { project.getMessageBus().syncPublisher(TOPIC).disconnectCausedError(new ErrorEvent<>(e)); } }
if (e instanceof ClientError) { P4WarningMessage.sendCharsetTranslationError(project, (ClientError) e); return createServerResultException(e, getMessage("error.ClientError", e),
public static void sendDisconnectCausedError(@NotNull Project project, @NotNull AccessException e) { if (canSendMessage(project)) { project.getMessageBus().syncPublisher(TOPIC).disconnectCausedError(new ErrorEvent<>(e)); } }
P4WarningMessage.addListener(projClient, this, new P4WarningMessage.Listener() { @Override public void disconnectCausedError(@NotNull ErrorEvent<Exception> e) {
public static void sendCharsetTranslationError(@NotNull Project project, @NotNull ClientError e) { if (canSendMessage(project)) { project.getMessageBus().syncPublisher(TOPIC).charsetTranslationError(new ErrorEvent<>(e)); } }
@Override public void handleOnDisconnectError(@NotNull AccessException e) { LOG.warn("Closing the connection to the Perforce server generated an error", e); P4WarningMessage.sendDisconnectCausedError(project, e); }