Project

General

Profile

Revision 17d882ef

ID17d882ef3e9d6f498af357d584bc63a2f6fc8512
Parent b7816bf4
Child 48efbc43

Added by Katja Luther over 2 years ago

events for name editor need to handle the related taxon

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
724 724

  
725 725
    @Inject
726 726
    @Optional
727
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR)boolean refresh){
728
        if(refresh){
727
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR)CdmBase cdmbase){
728
        if(cdmbase.equals(this.taxon) ){
729 729
            this.redraw(false, false, false, true);
730

  
730 731
        }
731 732
    }
732 733

  
......
747 748
                //check for match in type designations
748 749
                .anyMatch(unit->typeDesignationSpecimens.contains(unit))){
749 750
                EditorUtil.updateEditor(this.input.getTaxonNode(), this);
751

  
750 752
        }
751 753
    }
752 754

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java
16 16
import eu.etaxonomy.cdm.model.name.IZoologicalName;
17 17
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
18 18
import eu.etaxonomy.cdm.model.name.TaxonNameFactory;
19
import eu.etaxonomy.taxeditor.event.EventUtility;
20
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
19 21
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
20 22
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
21 23
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
......
174 176
//		if (getParentElement() instanceof AbstractCdmDetailSection)
175 177
			firePropertyChangeEvent(new CdmPropertyChangeEvent(
176 178
					getParentElement(), null));
179
			EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, true);
177 180
	}
178 181

  
179 182
	@Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailElement.java
16 16
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
17 17
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
18 18
import eu.etaxonomy.taxeditor.event.EventUtility;
19
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
19 20
import eu.etaxonomy.taxeditor.model.TaxonRelationshipTypeInverseContainer;
20 21
import eu.etaxonomy.taxeditor.ui.combo.MisappliedRelationshipComboElement;
21 22
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
......
155 156
			}
156 157
		}
157 158
		firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
159
		EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, getEntity().getToTaxon());
158 160
	}
159 161

  
160 162
	 @Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailSection.java
102 102
//                            firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
103 103
                            detailElement.firePropertyChangeEvent(new CdmPropertyChangeEvent(detailElement, null));
104 104
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_TAXON_DETAILS, true);
105
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, true);
106
                            ((TaxonRelationshipDetailElement)detailElement).getTaxonElement().setSelected(true);
107
//                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
105
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
106
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, rel.getToTaxon());
107
                            ((TaxonRelationshipDetailElement)detailElement).getTaxonElement().setSelected(true);;
108

  
109

  
108 110
	                    }
109 111
	                }
110 112
	            };

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)