1 | package de.uka.ipd.sdq.pcmsolver.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.ConfigurationTab; |
9 | import de.uka.ipd.sdq.workflow.pcm.runconfig.FileNamesInputTab; |
10 | |
11 | /** |
12 | * The configuration tabs shown in the run dialog or debug dialog for the PCM |
13 | * Solver launch. |
14 | * |
15 | * The extension point org.eclipse.debug.ui.launchConfigurationTabGroups in the |
16 | * plugin.xml refers to this class. The class inherits from the eclipse-internal |
17 | * tab group. |
18 | * |
19 | * @author koziolek, brosch |
20 | * |
21 | */ |
22 | public class PCMSolverTabGroup extends 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(), |
40 | new MainConfigTab(), |
41 | new ConfigurationTab(), |
42 | new DebugEnabledCommonTab() }; |
43 | |
44 | // Do the setup: |
45 | setTabs(tabs); |
46 | } |
47 | } |