URL installURL = Platform.getInstallLocation().getURL();
if (installURL == null || !"file".equals(installURL.getProtocol())) {
throw new IOException("Platform install location is not found: " + installURL);
}
manipulator.saveConfiguration(infos, new File(configURL.getFile() + SimpleConfiguratorManipulator.BUNDLES_INFO_PATH), new File(installURL.getFile()).toURI());
return Status.OK_STATUS;
} catch (IOException e) {
return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Cannot load configuration", e);
}