Project

General

Profile

« Previous | Next » 

Revision c04426d1

Added by Katja Luther almost 4 years ago

ref #8785:update facts view after searching

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java
26 26
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
27 27
import org.eclipse.e4.core.contexts.IEclipseContext;
28 28
import org.eclipse.e4.core.di.annotations.Optional;
29
import org.eclipse.e4.core.services.events.IEventBroker;
29 30
import org.eclipse.e4.ui.di.Focus;
30 31
import org.eclipse.e4.ui.di.Persist;
31 32
import org.eclipse.e4.ui.model.application.ui.MDirtyable;
......
70 71
import eu.etaxonomy.taxeditor.editor.l10n.Messages;
71 72
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4;
72 73
import eu.etaxonomy.taxeditor.editor.view.derivate.searchFilter.DerivateSearchCompositeController;
74
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
73 75
import eu.etaxonomy.taxeditor.model.AbstractUtility;
74 76
import eu.etaxonomy.taxeditor.model.IContextListener;
75 77
import eu.etaxonomy.taxeditor.model.IDirtyMarkable;
......
136 138

  
137 139
    private DerivateSearchCompositeController derivateSearchCompositeController;
138 140

  
141
    @Inject
142
    private IEventBroker eventBroker;
143

  
139 144
    /**
140 145
     * A map with keys being the derivative entities belonging to the {@link UUID}s passed to the constructor
141 146
     * and values being the root elements of the hierarchy (may be the same objects as the derivative entities)
......
273 278
            if(cdmEntitySession != null) {
274 279
                cdmEntitySession.bind();
275 280
            }
276

  
281
            eventBroker.post(WorkbenchEventConstants.CURRENT_ACTIVE_EDITOR, null);
277 282
            List<SpecimenOrObservationBase> derivates = null;
278 283
            if(derivativeUuids!=null){
279 284
                this.derivateToRootEntityMap = new HashMap<>();
......
290 295

  
291 296
    public void updateRootEntities(List<SpecimenOrObservationBase> derivates) {
292 297
        if(derivates!=null){
298
            eventBroker.post(WorkbenchEventConstants.CURRENT_ACTIVE_EDITOR, null);
293 299
            this.derivateToRootEntityMap = new HashMap<>();
294 300
            this.rootElements = new HashSet<>();
295 301
            for (SpecimenOrObservationBase derivate : derivates) {

Also available in: Unified diff