/** * Should only be called by {@link net.groboclown.p4.server.api.ProjectConfigRegistry}. Doesn't conform to * the "send(Project)" standard API, because it can trigger 2 events. * * @param project project to send the message on. */ public static void sendClientConfigurationAdded(@NotNull Project project, @Nullable VirtualFile root, @NotNull ClientConfig clientConfig) { ServerListener serverListener = ApplicationMessage.getListener(SERVER_TOPIC); if (serverListener != null) { serverListener.serverConfigAdded(new ServerConfigAddedEvent(clientConfig.getServerConfig())); } getListener(project, TOPIC, DEFAULT_LISTENER).clientConfigurationAdded(new ClientConfigAddedEvent( root, clientConfig)); }