1
2
3
4
5 package org.apache.commons.jelly.eclipse.ui;
6
7 import org.eclipse.core.runtime.CoreException;
8 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
9 import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
10 import org.eclipse.debug.ui.CommonTab;
11 import org.eclipse.debug.ui.EnvironmentTab;
12 import org.eclipse.debug.ui.ILaunchConfigurationDialog;
13 import org.eclipse.debug.ui.ILaunchConfigurationTab;
14 import org.eclipse.debug.ui.RefreshTab;
15
16 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
17 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
18 import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
19
20 /***
21 * The tab group for the Jelly launch configuration dialog. It contains
22 * - a main tab for the Jelly script file path and output file path
23 * - a java arguments tab
24 * - a JRE tab
25 * - a java classpath tab
26 * - an environment tab
27 * - a refresh tab
28 * - a common tab
29 * @author Juergen Mayrbaeurl
30 * @since 0.9
31 */
32 public class JellyLaunchTabGroup extends AbstractLaunchConfigurationTabGroup {
33
34
35
36
37 public void setDefaults(ILaunchConfigurationWorkingCopy config)
38 {
39 super.setDefaults(config);
40
41 try {
42 JellyLaunchUtils.initializeClasspath(config, null);
43 } catch (CoreException e) {
44 JellyLauncherPlugin.getDefault().
45 showErrorForException(JellyLaunchConfigurationConstants.ERR_CANT_SET_DEFAULTS,e);
46 }
47 }
48 /***
49 * Empty default constructor
50 */
51 public JellyLaunchTabGroup() {
52 super();
53 }
54
55
56
57
58 public void createTabs(ILaunchConfigurationDialog arg0, String arg1)
59 {
60 ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[]
61 {
62 new JellyLaunchMainTab(),
63 new JavaArgumentsTab(),
64 new JavaJRETab(),
65 new JavaClasspathTab(),
66 new EnvironmentTab() ,
67 new RefreshTab(),
68 new CommonTab()};
69 this.setTabs(tabs);
70 }
71
72 }