package org.argeo.slc.ide.ui.launch.osgi;
+import java.util.Map;
+import java.util.TreeMap;
+
import org.argeo.slc.ide.ui.SlcIdeUiPlugin;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
monitor);
}
+ @SuppressWarnings("unchecked")
@Override
protected void preLaunchCheck(ILaunchConfiguration configuration,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
ILaunchConfigurationWorkingCopy wc = configuration.getWorkingCopy();
OsgiLaunchHelper.updateLaunchConfiguration(wc, true);
wc.doSave();
+ Map<String, ?> attrs = new TreeMap<String, Object>(
+ (Map<String, String>) wc.getAttributes());
+ OsgiLaunchHelper.debug("WC " + wc);
+ for (String key : attrs.keySet())
+ OsgiLaunchHelper.debug(key + "=" + attrs.get(key));
+
super.preLaunchCheck(configuration, launch, monitor);
// Note that if a Java project contains a build.properties it has to
import org.eclipse.pde.ui.launcher.EclipseLauncherTabGroup;
import org.eclipse.pde.ui.launcher.MainTab;
import org.eclipse.pde.ui.launcher.OSGiSettingsTab;
+import org.eclipse.pde.ui.launcher.PluginsTab;
import org.eclipse.pde.ui.launcher.TracingTab;
/** Definition of the set of tabs used in Eclipse Boot launch configuration UI. */
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
new OsgiBootMainTab(true),
new MainTab(),
+ new PluginsTab(),
// new PluginsTab() {
// private boolean activating = false;
//
*/
protected static String convertBundleList(List<String> bundlesToStart,
String original) {
- if (debug)
- System.out.println("Original bundle list: " + original);
+ debug("Original bundle list: " + original);
StringTokenizer stComa = new StringTokenizer(original, ",");
// sort by bundle symbolic name
// We can now rely on bundleId value
if (bundleId.endsWith(".source")) {
- if (debug)
- System.out.println("Skip source bundle " + bundleId);
+ debug("Skip source bundle " + bundleId);
continue bundles;
} else if (bundleId
.equals(IPDEBuildConstants.BUNDLE_SIMPLE_CONFIGURATOR)) {
if (bundlesToStart.contains(bundleId)) {
bufBundles.append(bundleId).append('@').append("default:true");
modified = true;
- if (debug)
- System.out.println("Will start " + bundleId);
+ debug("Will start " + bundleId);
}
if (!modified)
}
}
+ static void debug(Object obj) {
+ if (debug)
+ System.out.println(obj);
+ }
+
}