Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a1869bd6cf80c13f0c3194c074ae01cbd3ed277d (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
/*****************************************************************************
 * Copyright (c) 2011 CEA LIST.
 *
 * 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:
 *		
 *		CEA LIST - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.service.edit.commands;

import org.eclipse.gmf.runtime.common.core.command.ICommand;
import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;

/**
 * <pre>
 * This kind of factory may be added in an element creation request and used
 * by the configure command to complete the existing configure command.
 * </pre>
 */
public interface IConfigureCommandFactory {

	/** ID to store {@link IConfigureCommandFactory} in request */
	public static final String CONFIGURE_COMMAND_FACTORY_ID = "IConfigureCommandFactory_ID"; //$NON-NLS-1$

	/**
	 * Create a configure element command.
	 * 
	 * @param request
	 *        the configure request.
	 * @return the configure command.
	 */
	public ICommand create(final ConfigureRequest request);
}

Back to the top