Skip to main content
summaryrefslogtreecommitdiffstats
blob: d040995885aeb94016f9d9d9bf21b09e01143a1a (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
/*******************************************************************************
 * 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.wst.common.internal.emf.utilities;

import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceDelta;
import org.eclipse.core.runtime.CoreException;

/**
 * @author John Mourra
 */
public interface ICommand {

	/*
	 * This will contain the multi-selection of objects to deploy. This selection could be used to
	 * filter elements within a Module. Any other setup code should be done here...
	 */
	void init(Object[] selection);

	/**
	 * @param resource
	 * @param delta
	 * @param context
	 * @return
	 * @throws CoreException
	 */
	public boolean execute(IResource resource, IResourceDelta delta, ICommandContext context) throws CoreException;

}

Back to the top