Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 4f8022f0f047575b702aeff6c584ada0a398be6a (plain) (tree)














































                                                                                                                         
/****************************************************************************
 * Copyright (c) 2004, 2007 Composent, Inc. 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:
 *    Composent, Inc. - initial API and implementation
 *****************************************************************************/

package org.eclipse.ecf.provider.filetransfer.browse;

import org.eclipse.ecf.core.AbstractContainerAdapterFactory;
import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.filetransfer.IRemoteFileSystemBrowserContainerAdapter;

/**
 * 
 */
public class MultiProtocolFileSystemBrowserAdapterFactory extends AbstractContainerAdapterFactory {

	IRemoteFileSystemBrowserContainerAdapter multiProtocolAdapter = new MultiProtocolFileSystemBrowserAdapter();

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ecf.core.sharedobject.AbstractSharedObjectContainerAdapterFactory#getAdapterList()
	 */
	public Class[] getAdapterList() {
		return new Class[] {IRemoteFileSystemBrowserContainerAdapter.class};
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.ecf.core.AbstractContainerAdapterFactory#getContainerAdapter(org.eclipse.ecf.core.IContainer,
	 *      java.lang.Class)
	 */
	protected Object getContainerAdapter(IContainer container, Class adapterType) {
		if (adapterType.equals(IRemoteFileSystemBrowserContainerAdapter.class)) {
			return multiProtocolAdapter;
		}
		return null;
	}

}

Back to the top