- findWorkingDirectory());
-
- // // Convert bundle lists
- // String targetBundles = configuration.getAttribute(
- // IPDELauncherConstants.TARGET_BUNDLES, "");
- // configuration.setAttribute(IPDELauncherConstants.TARGET_BUNDLES,
- // convertBundleList(bundlesToStart, targetBundles));
- //
- // String wkSpaceBundles = configuration.getAttribute(
- // IPDELauncherConstants.WORKSPACE_BUNDLES, "");
- // configuration.setAttribute(IPDELauncherConstants.WORKSPACE_BUNDLES,
- // convertBundleList(bundlesToStart, wkSpaceBundles));
- //
- // // Update other default information
- // configuration.setAttribute(
- // IPDELauncherConstants.DEFAULT_AUTO_START, false);
- // configuration.setAttribute(IPDELauncherConstants.CONFIG_CLEAR_AREA,
- // true);
- // String defaultVmArgs = configuration.getAttribute(
- // IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, "");
- // StringBuffer vmArgs = new StringBuffer(defaultVmArgs);
- // vmArgs.append(" -Xmx256m");
- //
- // // Add locations of JVMs
- // addVmSysProperty(vmArgs, "default", JavaRuntime
- // .getDefaultVMInstall());
- // IVMInstallType[] vmTypes = JavaRuntime.getVMInstallTypes();
- // for (IVMInstallType vmType : vmTypes) {
- // for (IVMInstall vmInstall : vmType.getVMInstalls()) {
- // // printVm("", vmInstall);
- // // properties based on name
- // addVmSysProperty(vmArgs, vmInstall.getName(), vmInstall);
- // if (vmInstall instanceof IVMInstall2) {
- // // properties based on version
- // IVMInstall2 vmInstall2 = (IVMInstall2) vmInstall;
- // String version = vmInstall2.getJavaVersion();
- // addVmSysProperty(vmArgs, version, vmInstall);
- //
- // List<String> tokens = new ArrayList<String>();
- // StringTokenizer st = new StringTokenizer(version, ".");
- // while (st.hasMoreTokens())
- // tokens.add(st.nextToken());
- // if (tokens.size() >= 2)
- // addVmSysProperty(vmArgs, tokens.get(0) + "."
- // + tokens.get(1), vmInstall);
- // }
- // }
- // }
- //
- // // Add other system properties
- // for (String key : systemPropertiesToAppend.keySet())
- // addSysProperty(vmArgs, key, systemPropertiesToAppend.get(key));
- //
- // configuration.setAttribute(
- // IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs
- // .toString());
- //
- // String dir = findWorkingDirectory();
- // if (dir != null)
- // configuration
- // .setAttribute(
- // IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
- // dir);
-