}
private void filterFeatures(FeatureModel fm , ConstraintModel cm , Set<Feature> fs) {
for(Iterator<Constraint> itc=cm.getAllConstraint().values().iterator() ; itc.hasNext() ; ) {
Constraint con = itc.next();
ConstraintExplorerCellRenderHelper helper = ConstraintExplorerCellRenderHelperManager.getInstance().getHelper(con);
fs.addAll(helper.getRelatedFeatures(con));
}
if (fm.getAllFeatureRelation()!=null) {
for (Iterator<FeatureRelation> itRelation=fm.getAllFeatureRelation().values().iterator() ; itRelation.hasNext() ; ) {
FeatureRelation relation = itRelation.next();
if (relation.getName().equals(FeatureRelation.REQUIRE) || relation.getName().equals(FeatureRelation.EXCLUDE)) {