return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Cannot get bundleContext", new Exception());
}
try {
BundleInfo[] infos = manipulator.loadConfiguration(bundleContext, null);
BundleInfo weavingInfo = null;
for (BundleInfo info : infos) {
if (info.getSymbolicName().equals("org.eclipse.equinox.weaving.aspectj")) {
weavingInfo = info;
break;
}
}
if (weavingInfo == null) {
return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Could not find equinox aspects bundle", new Exception());
}
weavingInfo.setMarkedAsStarted(becomeEnabled);
URL configURL = Platform.getConfigurationLocation().getURL();
if (configURL == null || !"file".equals(configURL.getProtocol())) {
throw new IOException("Platform configuration location is not found: " + configURL);
}