final List<BundleEntry> workspaceBundles = FelixLaunchHelper.getBundles(workspace);
final List<BundleEntry> targetBundles = FelixLaunchHelper.getBundles(target);
fModels = new HashMap<IPluginModelBase, String>();
for(BundleEntry e : workspaceBundles) {
final IPluginModelBase model = FelixLaunchHelper.resolveWorkspaceBundleEntry(e);
if(model == null) {
continue;
}
fModels.put(model, e.getAutostart() + ":" + e.getStartLevel()); //$NON-NLS-1$
}
if (configuration.getAttribute(IPDELauncherConstants.AUTOMATIC_ADD, true)) {
automaticallyAddWorkspaceBundles(configuration);
}
for(BundleEntry e : targetBundles) {
final IPluginModelBase model = FelixLaunchHelper.resolveTargetBundleEntry(e);
if(model == null) {
continue;
}
fModels.put(model, e.getAutostart() + ":" + e.getStartLevel()); //$NON-NLS-1$
}
fAllBundles = new HashMap<String, IPluginModelBase>(fModels.size());
final Iterator<IPluginModelBase> iter = fModels.keySet().iterator();
while (iter.hasNext()) {
final IPluginModelBase model = iter.next();
fAllBundles.put(model.getPluginBase().getId(), model);
}
super.preLaunchCheck(configuration, launch, monitor);
}