Project

General

Profile

Revision b0947131

IDb0947131a8708d3ddf95e886985801bb87063c46
Parent a776559e
Child caffc76b

Added by Katja Luther 7 months ago

ref #8797: only refresh parent node after moving node

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/TaxonNavigatorE4.java
633 633

  
634 634
    @Inject
635 635
    @Optional
636
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAVIGATOR)TaxonNodeDto dto){
637
        if(dto!= null){
638
            refresh(dto);
639
        }
640
    }
641

  
642
    @Inject
643
    @Optional
636 644
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAVIGATOR)boolean refresh){
637 645
        if(refresh){
638 646
            refresh();
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/RemotingMoveTaxonOperation.java
20 20
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
21 21
import eu.etaxonomy.cdm.api.service.UpdateResult;
22 22
import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor;
23
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
23 24
import eu.etaxonomy.taxeditor.event.EventUtility;
24 25
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
25 26
import eu.etaxonomy.taxeditor.model.AbstractUtility;
......
28 29
import eu.etaxonomy.taxeditor.navigation.navigator.e4.TreeNodeDropAdapterE4.MovingType;
29 30
import eu.etaxonomy.taxeditor.operation.IPostMoniteredOperationEnabled;
30 31
import eu.etaxonomy.taxeditor.operation.RemotingCdmUpdateOperation;
32
import eu.etaxonomy.taxeditor.store.CdmStore;
31 33

  
32 34
/**
33 35
 * @author cmathew
......
109 111
    @Override
110 112
    public void postOperation(IRemotingProgressMonitor monitor) {
111 113
        monitor.done();
112
        EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAVIGATOR, true);
114
        TaxonNodeDto parentDto = CdmStore.getService(ITaxonNodeService.class).dto(newParentTreeNodeUuid);
115
        EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAVIGATOR, parentDto);
113 116

  
114 117
    }
115 118

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)