Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 87231876a17d38f8e8f272db07a6d20035586c0a (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
/*******************************************************************************
 * Copyright (c) 2013 protos software gmbh (http://www.protos.de).
 * 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:
 * 		Henrik Rentz-Reichert (initial contribution)
 * 
 *******************************************************************************/

package my.etrice.generator.launch;

import my.etrice.generator.DerivedGenerator;

import org.eclipse.etrice.generator.base.io.ILineOutput;
import org.eclipse.etrice.generator.launch.java.JavaGeneratorLaunchConfigurationDelegate;

/**
 * @author Henrik Rentz-Reichert
 *
 */
public class DerivedGeneratorLaunchConfigurationDelegate extends
		JavaGeneratorLaunchConfigurationDelegate {

	/**
	 * EXAMPLE: override console name
	 * 
	 * @see org.eclipse.etrice.generator.launch.java.JavaGeneratorLaunchConfigurationDelegate#getConsoleName()
	 */
	protected String getConsoleName() {
		return "Derived Java Generator Console";
	}

	/**
	 * call the main generator
	 * 
	 * @see org.eclipse.etrice.generator.launch.java.JavaGeneratorLaunchConfigurationDelegate#runGenerator(java.lang.String[], org.eclipse.etrice.generator.base.ILineOutput)
	 */
	protected void runGenerator(String[] args, ILineOutput out) {
		DerivedGenerator.setOutput(out);
		DerivedGenerator.run(args);
	}

}

Back to the top