blob: fab6593ecf4cddc840748d5e22f06b9a7d6dc9d1 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2004 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.jst.j2ee.navigator.internal.dnd;
import org.eclipse.core.resources.IProject;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
/**
* @author mdelder
*
*/
public class AddModuleDropAction extends AddProjectToEarDropAction {
public AddModuleDropAction() {
super();
}
protected boolean validateProjectToAdd(IProject projectToAdd, int earVersion) {
//TODO fix up to use components
// J2EENature moduleNature = J2EENature.getRegisteredRuntime(projectToAdd);
// if (null == moduleNature || moduleNature.getNatureID().equals(IEARNatureConstants.NATURE_ID) || moduleNature.getJ2EEVersion() > earVersion) {
// return false;
// }
return true;
}
protected IDataModel getDataModel(IProject earProject, IProject projectToAdd) {
//TODO fix up to use components
// return AddModuleToEARDataModel.createAddToEARDataModel(null,null);
return null;
}
}