Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 75ea973e061bbfb60ae0e1bcab03f5cbe1577560 (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) 2008, 2017 Atos Origin, CEA, ALL4TEC 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:
 *		Thibault Landre (Atos Origin) - Initial API and implementation
 *		Mickaël ADAM (ALL4TEC) mickael.adam@all4tec.net - Bug 510587: the palette must not be generated by using GMF gen
 *
 *****************************************************************************/
package org.eclipse.papyrus.codegen;

import org.eclipse.gmf.codegen.gmfgen.GenEditorGenerator;
import org.eclipse.gmf.codegen.util.Generator;
import org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation;

/**
 * The Papyrus execute templates operation
 *
 * @see org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTemplatesOperation
 * @author tlandre
 */
public class PapyrusExecuteTemplatesOperation extends ExecuteTemplatesOperation {

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected Generator createGenerator() {
		GenEditorGenerator genModel = getGenModel();
		return new PapyrusGenerator(genModel, new PapyrusCodegenEmitters(!genModel.isDynamicTemplates(), genModel.getTemplateDirectory(), genModel.getModelAccess() != null));
	}

}

Back to the top