blob: ccf3c339418cef40db12ac073635dfe65e3d0805 [file] [log] [blame]
/*
* Created on Jan 18, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.eclipse.jst.j2ee.internal.deployables;
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.wst.server.core.ILaunchable;
import org.eclipse.wst.server.core.IModuleArtifact;
public class EnterpriseDeployableArtifactAdapterFactory implements IAdapterFactory {
public Object getAdapter(Object adaptableObject, Class adapterType) {
IModuleArtifact moduleArtifact = null;
if (adapterType == EnterpriseModuleArtifact.class || adapterType == IModuleArtifact.class)
moduleArtifact = EnterpriseApplicationDeployableAdapterUtil.getModuleObject(adaptableObject);
return moduleArtifact;
}
public Class[] getAdapterList() {
return new Class[] { IModuleArtifact.class, ILaunchable.class };
}
}