From 3421d7deaaf3ed1ae8c753d64f5b3c5260ea807d Mon Sep 17 00:00:00 2001 From: nsingh Date: Mon, 25 Jun 2018 20:10:44 -0700 Subject: [PATCH] Removed obsolete manifest LS types --- .../cftarget/CFParamsProviderMessages.java | 28 -------- .../cftarget/CfCliProviderMessages.java | 44 ------------- .../client/cftarget/CfClientConfig.java | 65 ------------------- .../client/cftarget/CfClientConfigImpl.java | 48 -------------- 4 files changed, 185 deletions(-) delete mode 100644 headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CFParamsProviderMessages.java delete mode 100644 headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfCliProviderMessages.java delete mode 100644 headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfig.java delete mode 100644 headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfigImpl.java diff --git a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CFParamsProviderMessages.java b/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CFParamsProviderMessages.java deleted file mode 100644 index 986b41b97..000000000 --- a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CFParamsProviderMessages.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Pivotal, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Pivotal, Inc. - initial API and implementation - *******************************************************************************/ -package org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget; - -/** - * Messages that are specific to a particular parameter provider - * - */ -public interface CFParamsProviderMessages { - - - String noTargetsFound(); - - String unauthorised(); - - String noNetworkConnection(); - - String noOrgSpace(); - -} diff --git a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfCliProviderMessages.java b/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfCliProviderMessages.java deleted file mode 100644 index 7a8687292..000000000 --- a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfCliProviderMessages.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Pivotal, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Pivotal, Inc. - initial API and implementation - *******************************************************************************/ -package org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget; - -public final class CfCliProviderMessages implements CFParamsProviderMessages { - - /* - * Important: be sure to use ':' to separate the initial part of the message - * with a longer portion. The vscode content assist will parse around the - * first ':' and the second segment will appear as a doc string that can be - * longer - */ - public static final String NO_CLI_TARGETS_FOUND_MESSAGE = "No Cloud Foundry targets found: Use cf CLI to login"; - public static final String NO_NETWORK_CONNECTION = "No connection to Cloud Foundry: Use cf CLI to login or verify network connection"; - public static final String NO_ORG_SPACE = "No org/space selected: Use CF CLI to login"; - - @Override - public String noTargetsFound() { - return NO_CLI_TARGETS_FOUND_MESSAGE; - } - - @Override - public String unauthorised() { - return NO_NETWORK_CONNECTION; - } - - @Override - public String noNetworkConnection() { - return NO_NETWORK_CONNECTION; - } - - @Override - public String noOrgSpace() { - return NO_ORG_SPACE; - } -} \ No newline at end of file diff --git a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfig.java b/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfig.java deleted file mode 100644 index ee30d6255..000000000 --- a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfig.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Pivotal, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Pivotal, Inc. - initial API and implementation - *******************************************************************************/ -package org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget; - -/** - * CF Client configuration - * - * @author Alex Boyko - * - */ -public interface CfClientConfig { - - /** - * Listener to changes in parameters provider - */ - @FunctionalInterface - public interface ClientParamsProviderChangedListener { - void clientParamsProviderChanged(ClientParamsProvider newProvider, ClientParamsProvider oldProvider); - } - - /** - * Returns CF client parameters provider - * @return parameters provider - */ - ClientParamsProvider getClientParamsProvider(); - - /** - * Sets CF client parameters provider - * @param provider - */ - void setClientParamsProvider(ClientParamsProvider provider); - - /** - * Adds listener to listen to CF parameter provider changes - * @param listener - */ - void addClientParamsProviderChangedListener(ClientParamsProviderChangedListener listener); - - /** - * Removes CF parameter provider change listener - * @param listener - */ - void removeClientParamsProviderChangedListener(ClientParamsProviderChangedListener listener); - - /** - * Default CF Client configuration - */ - static CfClientConfig createDefault() { - return new CfClientConfigImpl(); - } - - static CfClientConfig createDefault(ClientParamsProvider provider) { - CfClientConfigImpl config = new CfClientConfigImpl(); - config.setClientParamsProvider(provider); - return config; - } -} diff --git a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfigImpl.java b/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfigImpl.java deleted file mode 100644 index b33aa1819..000000000 --- a/headless-services/commons/commons-cf/src/main/java/org/springframework/ide/vscode/commons/cloudfoundry/client/cftarget/CfClientConfigImpl.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2017 Pivotal, Inc. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Pivotal, Inc. - initial API and implementation - *******************************************************************************/ -package org.springframework.ide.vscode.commons.cloudfoundry.client.cftarget; - -import org.springframework.ide.vscode.commons.util.ListenerList; - -/** - * Default CF client configuration implementation - * - * @author Alex Boyko - * - */ -class CfClientConfigImpl implements CfClientConfig { - - private ClientParamsProvider clientParamsProvider; - private ListenerList listeners = new ListenerList<>(); - - @Override - public ClientParamsProvider getClientParamsProvider() { - return clientParamsProvider; - } - - @Override - public void setClientParamsProvider(ClientParamsProvider provider) { - ClientParamsProvider oldParamsProvider = this.clientParamsProvider; - this.clientParamsProvider = provider; - listeners.forEach(l -> l.clientParamsProviderChanged(clientParamsProvider, oldParamsProvider)); - } - - @Override - public void addClientParamsProviderChangedListener(ClientParamsProviderChangedListener listener) { - listeners.add(listener); - } - - @Override - public void removeClientParamsProviderChangedListener(ClientParamsProviderChangedListener listener) { - listeners.remove(listener); - } - -}