Revision 33252062
Added by Katja Luther about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java | ||
---|---|---|
12 | 12 |
import java.util.HashSet; |
13 | 13 |
import java.util.Set; |
14 | 14 |
|
15 |
import javax.inject.Inject; |
|
16 |
|
|
17 |
import org.eclipse.e4.core.di.annotations.Optional; |
|
18 |
import org.eclipse.e4.ui.di.UIEventTopic; |
|
15 | 19 |
import org.eclipse.jface.viewers.ISelection; |
16 | 20 |
import org.eclipse.jface.viewers.IStructuredSelection; |
17 | 21 |
import org.eclipse.jface.viewers.SelectionChangedEvent; |
... | ... | |
54 | 58 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType; |
55 | 59 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
56 | 60 |
import eu.etaxonomy.taxeditor.editor.IDistributionEditor; |
61 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
|
57 | 62 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
58 | 63 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
59 | 64 |
import eu.etaxonomy.taxeditor.model.IDerivedUnitFacadePart; |
... | ... | |
882 | 887 |
public void update(CdmDataChangeMap arg0) { |
883 | 888 |
|
884 | 889 |
} |
885 |
|
|
890 |
@Inject |
|
891 |
@Optional |
|
892 |
private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_TAXON_DETAILS)boolean refresh){ |
|
893 |
if(refresh){ |
|
894 |
refresh(); |
|
895 |
setSelection(getSelection(), true); |
|
896 |
} |
|
897 |
} |
|
886 | 898 |
} |
Also available in: Unified diff
better handling of updating misapplied names