1 | package de.uka.ipd.sdq.codegen.simucontroller.workflow.jobs; |
2 | |
3 | |
4 | |
5 | import java.io.PrintStream; |
6 | |
7 | import de.uka.ipd.sdq.workflow.IJob; |
8 | import de.uka.ipd.sdq.workflow.pcm.configurations.AbstractCodeGenerationWorkflowRunConfiguration; |
9 | |
10 | public class CreateSimuComMetaDataFilesJob extends AbstractCreateMetaDataFilesJob implements IJob { |
11 | |
12 | public CreateSimuComMetaDataFilesJob(AbstractCodeGenerationWorkflowRunConfiguration configuration) { |
13 | super(); |
14 | |
15 | this.configuration = configuration; |
16 | } |
17 | |
18 | @Override |
19 | protected void writePluginXmlContent(PrintStream out) { |
20 | out.println("<?xml version='1.0'?>"); //$NON-NLS-1$ |
21 | out.println("<plugin>"); //$NON-NLS-1$ |
22 | out.println(" <extension"); //$NON-NLS-1$ |
23 | out.println(" point=\"de.uka.ipd.sdq.simucomframework.controller\">"); //$NON-NLS-1$ |
24 | out.println(" <actionDelegate"); //$NON-NLS-1$ |
25 | out.println(" class=\"main.SimuComControl\""); //$NON-NLS-1$ |
26 | out.println(" id=\"de.uka.ipd.sdq.codegen.simucominstance.actionDelegate\">"); //$NON-NLS-1$ |
27 | out.println(" </actionDelegate>"); //$NON-NLS-1$ |
28 | out.println(" </extension>"); //$NON-NLS-1$ |
29 | out.println("</plugin>"); //$NON-NLS-1$ |
30 | } |
31 | |
32 | @Override |
33 | protected void writeBuildPropertiesContent(PrintStream out) { |
34 | out.println("output.. = bin/"); //$NON-NLS-1$ |
35 | out.println("source.. = src/"); //$NON-NLS-1$ |
36 | out.println("bin.includes = plugin.xml,\\"); //$NON-NLS-1$ |
37 | out.println(" META-INF/,\\"); //$NON-NLS-1$ |
38 | out.println(" ."); //$NON-NLS-1$ |
39 | } |
40 | |
41 | private final static String[] BUNDLES = new String[] { |
42 | "de.uka.ipd.sdq.simulation", |
43 | "de.uka.ipd.sdq.simulation.abstractsimengine", |
44 | "de.uka.ipd.sdq.simucomframework", |
45 | "de.uka.ipd.sdq.simucomframework.simucomstatus", |
46 | "de.uka.ipd.sdq.sensorframework", |
47 | "de.uka.ipd.sdq.simucomframework.variables", |
48 | "org.apache.log4j", |
49 | "org.eclipse.osgi", |
50 | "de.uka.ipd.sdq.scheduler", |
51 | "org.jscience", |
52 | "de.uka.ipd.sdq.probespec.framework", |
53 | "de.uka.ipd.sdq.pipesandfilters", |
54 | "de.uka.ipd.sdq.pipesandfilters.framework", |
55 | "de.uka.ipd.sdq.reliability.core", |
56 | "de.fzi.se.accuracy", |
57 | "de.uka.ipd.sdq.probfunction.math" |
58 | }; |
59 | |
60 | |
61 | @Override |
62 | protected String[] getRequiredBundles() { |
63 | return BUNDLES; |
64 | } |
65 | |
66 | @Override |
67 | protected String getBundleActivator() { |
68 | return "main.SimuComControl"; |
69 | } |
70 | |
71 | } |