Project

General

Profile

Revision 55563baa

ID55563baa336512d5a297b248eb72c22bf44926bd
Parent 4b61c8bc
Child 4ffaaf10

Added by Patrick Plitzner over 3 years ago

ref #7010 Enable multi selection in uses view

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/uses/e4/UsesViewPartE4.java
28 28
import eu.etaxonomy.taxeditor.editor.view.descriptive.e4.FactualDataPartE4;
29 29
import eu.etaxonomy.taxeditor.editor.view.uses.UsesContentProvider;
30 30
import eu.etaxonomy.taxeditor.editor.view.uses.UsesLabelProvider;
31
import eu.etaxonomy.taxeditor.model.AbstractUtility;
32 31

  
33 32

  
34 33
/**
......
49 48
        this.thisPart = thisPart;
50 49

  
51 50
        TreeViewer treeViewer = new TreeViewer(new Tree(parent, SWT.H_SCROLL
52
                | SWT.V_SCROLL | SWT.FULL_SELECTION));
51
                | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.MULTI));
53 52
        treeViewer.setContentProvider(new UsesContentProvider(featureNodeContainerCache));
54 53
        treeViewer.setLabelProvider(new UsesLabelProvider());
55 54
        treeViewer.setAutoExpandLevel(2);
......
65 64

  
66 65

  
67 66
        // Propagate selection from viewer
68
        selectionChangedListener = (event -> selService.setSelection(AbstractUtility.getElementsFromSelectionChangedEvent(event)));
67
        selectionChangedListener = (event -> selService.setSelection(event.getSelection()));
69 68
        treeViewer.addSelectionChangedListener(selectionChangedListener);
70 69

  
71 70
        //create context menu

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)