Project

General

Profile

Revision cae3bd94

IDcae3bd9458a2bd5dec6ed764256ddf78b138539a
Parent 75be5411
Child c6b9b74b

Added by Patrick Plitzner over 1 year ago

ref #7875 Do not save grayed values

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/AreasSelectionDialog.java
76 76
    protected void okPressed() {
77 77
        selectedAreas.clear();
78 78
        List<Object> checkedElements = Arrays.asList(treeComposite.getViewer().getCheckedElements());
79
        checkedElements = checkedElements.stream().filter(element->element instanceof TermDto).collect(Collectors.toList());
79
        checkedElements = checkedElements.stream()
80
                .filter(element->element instanceof TermDto && !treeComposite.getViewer().getGrayed(element))
81
                .collect(Collectors.toList());
80 82
        selectedAreas = new ArrayList(checkedElements);
81 83
        super.okPressed();
82 84
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)