blob: 20a7bae652000ee310cf118bc24d80fc15c5014b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.internal.expressions.tests;
import org.eclipse.core.runtime.IAdapterFactory;
public class TestAdapterFactory implements IAdapterFactory {
public Object getAdapter(Object adaptableObject, Class adapterType) {
if (Adapter.class.equals(adapterType))
return new Adapter();
return null;
}
public Class[] getAdapterList() {
return new Class[] { Adapter.class };
}
}