Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 6d6f05bd197dee9e5282849bc023e6868428dc1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*******************************************************************************
 * Copyright (c) 2003, 2005 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.swt.dnd.TransferData;
import org.eclipse.ui.navigator.CommonDropAdapter;
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;
	}

	public boolean validateDrop(CommonDropAdapter dropAdapter, Object target, int operation, TransferData transferType) {
		// TODO Auto-generated method stub
		return false;
	}

	public boolean run(CommonDropAdapter dropAdapter, Object source, Object target) {
		// TODO Auto-generated method stub
		return false;
	}

}

Back to the top