List<SimpleProject> projects = new ArrayList<SimpleProject>();
for (ContentItem item : projectItems) {
if (SimpleProjectFactory.isSimpleProject(item)) {
SimpleProject simpleProject = SimpleProjectFactory.getSimpleProject(item);
if (simpleProject != null) {
BundleContentLoader loader = new BundleContentLoader(item, WizardPlugin.getDefault().getBundle(),
this);
loader.load(monitor);
// Now get the project install directory so that the project
// data can be read from it
File projectDir = new File(baseDir, item.getPath());
TemplateProjectData data = new TemplateProjectData(projectDir);
data.read();
// Important that the data be set, otherwise the simple
// project cannot be processed
simpleProject.setTemplateData(data);
projects.add(simpleProject);
}
}