Project

General

Profile

« Previous | Next » 

Revision 61d94a7a

Added by Patrick Plitzner over 6 years ago

ref #6595, #6597 Optimize selection event propagation

  • reduce rendering of details view etc.

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java
36 36
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
37 37
import eu.etaxonomy.taxeditor.editor.IDistributionEditor;
38 38
import eu.etaxonomy.taxeditor.editor.ITaxonEditor;
39
import eu.etaxonomy.taxeditor.event.EventUtility;
39 40
import eu.etaxonomy.taxeditor.model.IDirtyMarkable;
40 41
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
41 42
import eu.etaxonomy.taxeditor.view.e4.details.DetailsViewerE4;
......
118 119
    protected abstract void selectionChanged_internal(Object selection, MPart activePart, MPart thisPart);
119 120

  
120 121
    @Inject
121
    @Optional
122 122
    public void selectionChanged(
123
            @Named(IServiceConstants.ACTIVE_SELECTION)Object selection,
124
            @Named(IServiceConstants.ACTIVE_PART)MPart activePart,
123
            @Optional@Named(IServiceConstants.ACTIVE_SELECTION)Object selection,
124
            @Optional@Named(IServiceConstants.ACTIVE_PART)MPart activePart,
125 125
            MPart thisPart, UISynchronize sync){
126
        if(activePart==thisPart && EventUtility.getTaxonEditor()==null){
127
            showEmptyPage();
128
            return;
129
        }
126 130
        if(previousSelection==null ||
127 131
                previousSelection!=selection){//skip redundant rendering of details view
128 132
            if(delaySelection==null){

Also available in: Unified diff