package org.argeo.slc.ide.ui.launch.osgi;
import org.eclipse.core.runtime.CoreException;
-import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.EnvironmentTab;
import org.eclipse.pde.ui.launcher.OSGiSettingsTab;
import org.eclipse.pde.ui.launcher.TracingTab;
+/** Definition of the set of tabs used in OSGiBoot launch configuration UI. */
public class OsgiBootLauncherTabGroup extends OSGiLauncherTabGroup {
@Override
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
+ // JavaArgumentsTab javaArgumentsTab = new JavaArgumentsTab() {
+ // private boolean initializing = false;
+ //
+ // @Override
+ // public void performApply(
+ // ILaunchConfigurationWorkingCopy configuration) {
+ // if (initializing)
+ // return;
+ // initializing = true;
+ // initializeFrom(configuration);
+ // initializing = false;
+ // }
+ //
+ // @Override
+ // public boolean isValid(ILaunchConfiguration config) {
+ // return true;
+ // }
+ // };
+
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
- new OsgiBootMainTab(), new EnvironmentTab(), new BundlesTab() {
+ new OsgiBootMainTab(),
+ new BundlesTab() {
private boolean activating = false;
@Override
public void performApply(
ILaunchConfigurationWorkingCopy config) {
- System.out.println("performApply");
super.performApply(config);
if (activating) {
try {
ILaunchConfigurationWorkingCopy workingCopy) {
activating = true;
}
- }, new OSGiSettingsTab(), new TracingTab(), new CommonTab() };
+ }, new OSGiSettingsTab(), new EnvironmentTab(),
+ new TracingTab(), new CommonTab() };
setTabs(tabs);
}