@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(); }
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; }
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; }