1 | package de.uka.ipd.sdq.reliability.solver.runconfig; |
2 | |
3 | import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; |
4 | import org.eclipse.debug.ui.ILaunchConfigurationDialog; |
5 | import org.eclipse.debug.ui.ILaunchConfigurationTab; |
6 | |
7 | import de.uka.ipd.sdq.workflow.launchconfig.tabs.DebugEnabledCommonTab; |
8 | import de.uka.ipd.sdq.workflow.pcm.runconfig.FileNamesInputTab; |
9 | |
10 | /** |
11 | * The configuration tabs shown in the run dialog or debug dialog for the PCM |
12 | * Solver Reliability launch. |
13 | * |
14 | * The extension point org.eclipse.debug.ui.launchConfigurationTabGroups in the |
15 | * plugin.xml refers to this class. The class inherits from the eclipse-internal |
16 | * tab group. |
17 | * |
18 | * @author brosch |
19 | * |
20 | */ |
21 | public class PCMSolverReliabilityTabGroup extends |
22 | AbstractLaunchConfigurationTabGroup { |
23 | |
24 | /** |
25 | * The main routine that creates and sets the individual tab pages. |
26 | * |
27 | * @param dialog |
28 | * the run or debug dialog |
29 | * @param mode |
30 | * distinguishes between run and debug modes |
31 | * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup#createTabs(org.eclipse.debug.ui.ILaunchConfigurationDialog, |
32 | * java.lang.String) |
33 | */ |
34 | public void createTabs(final ILaunchConfigurationDialog dialog, |
35 | final String mode) { |
36 | |
37 | // Assemble the tab pages: |
38 | ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { |
39 | new FileNamesInputTab(), new ReliabilityConfigurationTab(), |
40 | new OptionsTab(), new DebugEnabledCommonTab() }; |
41 | |
42 | // Do the setup: |
43 | setTabs(tabs); |
44 | } |
45 | } |