Project

General

Profile

Revision c799a32e

IDc799a32e590620a2719f8f4edfa30604d5a23306
Parent 3158af23
Child e4f8b74d

Added by Katja Luther over 2 years ago

fix #3535: update name editor after moving descriptions from one taxon to another taxon

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
13 13
import java.util.HashSet;
14 14
import java.util.List;
15 15
import java.util.Set;
16
import java.util.UUID;
16 17

  
17 18
import javax.annotation.PostConstruct;
18 19
import javax.annotation.PreDestroy;
......
751 752

  
752 753
    @Inject
753 754
    @Optional
755
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR)UUID cdmbaseUuid){
756

  
757
        if (this.taxon.getUuid().equals(cdmbaseUuid)){
758
            TaxonEditorInputE4 input = TaxonEditorInputE4.NewInstanceFromTaxonBase(cdmbaseUuid);
759
            init(input);
760
        }
761
    }
762

  
763
    @Inject
764
    @Optional
754 765
    private void updatefromDelete(@UIEventTopic(WorkbenchEventConstants.DELETE_DERIVATIVE)DeleteResult result){
755 766
        if(taxon.getName()==null){
756 767
            return;
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingMoveFactualDataHandlerE4.java
29 29
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
30 30
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
31 31
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
32
import eu.etaxonomy.taxeditor.event.EventUtility;
33
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
32 34
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
33 35
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
34 36
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNavigatorLabels;
......
135 137
        Display.getDefault().asyncExec(new Runnable(){
136 138
            @Override
137 139
            public void run() {
140

  
141
                EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, sourceTaxonNode.getTaxonUuid());
142
                EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, targetTaxonNode.getTaxon().getUuid());
138 143
                //FIXME E4 refresh factual view via events or similar
139 144
//                try {
140 145
//                    //close and re-open to refresh factual data view

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)