public void setFeatureModels(List<IModule> modules) { for (IModule module : modules) { IFile featureFile = (IFile) module.getProject().findMember("feature.xml"); WorkspaceFeatureModel wfModel = new WorkspaceFeatureModel(featureFile); addWfModel(wfModel); IFeature feature = wfModel.getFeature(); setIuId(module, module.getName() + ".feature.group"); setIuVersion(module, feature.getVersion()); } }
public void addWfModel(WorkspaceFeatureModel wfModel) { if (wfModels == null) { wfModels = new ArrayList<WorkspaceFeatureModel>(); iuIdMap = new HashMap<IModule, String>(); iuVersionMap = new HashMap<IModule, String>(); } wfModel.load(); wfModels.add(wfModel); }