1 | package de.uka.ipd.sdq.codegen.simucontroller.runconfig; |
2 | |
3 | import java.util.ArrayList; |
4 | import java.util.List; |
5 | |
6 | import org.eclipse.debug.ui.ILaunchConfigurationDialog; |
7 | import org.eclipse.debug.ui.ILaunchConfigurationTab; |
8 | |
9 | import de.uka.ipd.sdq.cip.runtime.runconfig.tabs.CipCompletionTab; |
10 | import de.uka.ipd.sdq.codegen.simucontroller.workflow.jobs.WorkflowHooks; |
11 | import de.uka.ipd.sdq.workflow.launchconfig.extension.ExtendableTabGroup; |
12 | import de.uka.ipd.sdq.workflow.launchconfig.tabs.DebugEnabledCommonTab; |
13 | import de.uka.ipd.sdq.workflow.pcm.runconfig.FileNamesInputTab; |
14 | |
15 | /** |
16 | * The class defines tabs for the SimuBench Launch configuration menu. |
17 | * |
18 | * @author Roman Andrej |
19 | */ |
20 | public class SimuTabGroup extends ExtendableTabGroup { |
21 | |
22 | /** The id of the workflow extending configuration tabs have to register for. */ |
23 | public static String WORKFLOW_ID = "workflow.extension.simucom"; |
24 | |
25 | @Override |
26 | public void createTabs(ILaunchConfigurationDialog dialog, String mode) { |
27 | List<ILaunchConfigurationTab> tabs = new ArrayList<ILaunchConfigurationTab>(); |
28 | ILaunchConfigurationTab commonTab = new DebugEnabledCommonTab(); |
29 | tabs.add(new FileNamesInputTab());// Default tab |
30 | tabs.add(new SimuComConfigurationTab()); |
31 | tabs.add(new SimuConfigurationTab()); |
32 | for (String workflowExtensionPointId : WorkflowHooks.getAllWorkflowHookIDs()) { |
33 | tabs.addAll(createExtensionTabs(dialog, mode, workflowExtensionPointId)); |
34 | } |
35 | tabs.add(new FeatureOptionsTab()); |
36 | tabs.add(new CipCompletionTab()); |
37 | tabs.add(commonTab); |
38 | setTabs(tabs.toArray(new ILaunchConfigurationTab[] {})); |
39 | } |
40 | } |