Example #1
0
 @Override
 public String toString() {
   StringBuilder builder = new StringBuilder();
   for (SelectableFeature feature : features) {
     if (feature.getSelection() == Selection.SELECTED
         && feature.getFeature().getStructure().isConcrete()) {
       builder.append(feature.getFeature().getName());
       builder.append("\n");
     }
   }
   return builder.toString();
 }
Example #2
0
 public List<IFeature> getSelectedFeatures() {
   final List<IFeature> result = new ArrayList<IFeature>();
   for (SelectableFeature feature : features) {
     if (feature.getSelection() == Selection.SELECTED) {
       result.add(feature.getFeature());
     }
   }
   return result;
 }
Example #3
0
 public List<SelectableFeature> getManualFeatures() {
   final List<SelectableFeature> featureList = new LinkedList<SelectableFeature>();
   for (SelectableFeature selectableFeature : features) {
     if (selectableFeature.getAutomatic() == Selection.UNDEFINED
         && !selectableFeature.getFeature().getStructure().hasHiddenParent()) {
       featureList.add(selectableFeature);
     }
   }
   return featureList;
 }