Revision 9da8ddff
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java | ||
---|---|---|
55 | 55 |
} |
56 | 56 |
} |
57 | 57 |
|
58 |
public void showViewer(IStructuredSelection selection){ |
|
58 |
public void showViewer(IStructuredSelection selection, MPart activePart){
|
|
59 | 59 |
if(viewer!=null){ |
60 | 60 |
Object element = selection.getFirstElement(); |
61 | 61 |
if(selection.getFirstElement()!=null){ |
62 | 62 |
viewer.setInput(element); |
63 | 63 |
} |
64 |
selectionProvidingPart = activePart; |
|
64 | 65 |
} |
65 | 66 |
} |
66 | 67 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsPartE4.java | ||
---|---|---|
90 | 90 |
return; |
91 | 91 |
} |
92 | 92 |
} |
93 |
showViewer(structuredSelection); |
|
94 |
selectionProvidingPart = activePart; |
|
93 |
showViewer(structuredSelection, activePart); |
|
95 | 94 |
return; |
96 | 95 |
} |
97 | 96 |
else{ |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java | ||
---|---|---|
121 | 121 |
structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit()); |
122 | 122 |
} |
123 | 123 |
|
124 |
showViewer(structuredSelection); |
|
124 |
showViewer(structuredSelection, activePart);
|
|
125 | 125 |
return; |
126 | 126 |
}else{ |
127 | 127 |
showEmptyPage(); |
Also available in: Unified diff
ref #6905, #6597 Propagate selection for supplemental data view