blob: 2ec12c701309eac2b8449a4c683461ac1a22971a [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007 IBM Corporation and others.
* 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:
* IBM Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.ptp.internal.remote;
import org.eclipse.ptp.remote.IRemoteConnection;
import org.eclipse.ptp.remote.IRemoteConnectionManager;
import org.eclipse.swt.widgets.Shell;
public class LocalConnectionManager implements IRemoteConnectionManager {
private IRemoteConnection localConnection = new LocalConnection();
/* (non-Javadoc)
* @see org.eclipse.ptp.remote.IRemoteConnectionManager#getConnection(java.lang.String)
*/
public IRemoteConnection getConnection(String name) {
return localConnection;
}
/* (non-Javadoc)
* @see org.eclipse.ptp.remote.IRemoteConnectionManager#getConnections()
*/
public IRemoteConnection[] getConnections() {
return new IRemoteConnection[]{localConnection};
}
/* (non-Javadoc)
* @see org.eclipse.ptp.remote.IRemoteConnectionManager#newConnection()
*/
public void newConnection(Shell shell) {
}
/* (non-Javadoc)
* @see org.eclipse.ptp.remote.IRemoteConnectionManager#supportsNewConnections()
*/
public boolean supportsNewConnections() {
return false;
}
}