Removed obsolete manifest LS types

This commit is contained in:
nsingh
2018-06-25 20:10:44 -07:00
parent 990c8aae26
commit 3421d7deaa
4 changed files with 0 additions and 185 deletions

View File

@@ -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();
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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<ClientParamsProviderChangedListener> 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);
}
}