return null; // no fragments
// search the fragments for patch fragments
ArrayList patchList = new ArrayList(fragments.length);
for (int i = 0; i < fragments.length; i++) {
AbstractBundle fragment = (AbstractBundle) fragments[i];
BaseData fragmentData = (BaseData) fragment.getBundleData();
// The PFStorageHook knows if this is a patch fragment
PFStorageHook storageHook = (PFStorageHook) fragmentData.getStorageHook(PFStorageHook.KEY);
if (storageHook.isPatchFragment()) {
if (PFConfigurator.DEBUG)
System.out.println("Found patch fragment: " + fragmentData.toString()); //$NON-NLS-1$
patchList.add(fragmentData.getBundleFile());
// need to listen to this fragment
bundlesToListen.add(fragment);
// add in dev classpaths
if (DevClassPathHelper.inDevelopmentMode()) {
String[] devPath = DevClassPathHelper.getDevClassPath(fragmentData.getSymbolicName());
if (devPath != null) {
for (int j = 0; j < devPath.length; j++) {
File devFile = fragmentData.getBundleFile().getFile(devPath[i], false);
patchList.add(pfAdaptorHook.createDevClasspathBundleFile(devFile, fragmentData));
}
}
}
}