Exemple #1
0
 protected void clearEvaluationStrategyCache(IProject project) {
   IEvaluationStrategy strategy;
   try {
     IFeatureModel featureModel = FeatureModelManager.getInstance().getFeatureModel(project);
     strategy = EvaluationStrategyManager.getInstance().getEvaluationStrategy(project);
     strategy.clearCache(featureModel);
   } catch (FeatureModelNotFoundException e1) {
     // TODO Auto-generated catch block
     e1.printStackTrace();
     return;
   }
 }
 public boolean evaluate(IEvaluationStrategy strategy) {
   return strategy.implies(
       file.getFeatureModel(),
       file.getColorManager().getColors(source),
       file.getColorManager().getColors(targetVariableDeclaration));
 }