Project

General

Profile

Revision 48efbc43

ID48efbc430f4fdb9de7077959280c77edbf700d69
Parent 17d882ef
Child 5385aefa

Added by Katja Luther over 2 years ago

event handling in name editor should also check for the active editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
725 725
    @Inject
726 726
    @Optional
727 727
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_NAME_EDITOR)CdmBase cdmbase){
728
        if(cdmbase.equals(this.taxon) ){
729
            this.redraw(false, false, false, true);
728

  
729
        if (EventUtility.getTaxonEditor().equals(this) || (this.taxon.equals(cdmbase) || this.taxon.getName().equals(cdmbase))){
730
            this.redraw();
731
            this.setDirty();
730 732

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

  
752 753
        }
754

  
755

  
756

  
757

  
753 758
    }
754 759

  
755 760
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailElement.java
176 176
//		if (getParentElement() instanceof AbstractCdmDetailSection)
177 177
			firePropertyChangeEvent(new CdmPropertyChangeEvent(
178 178
					getParentElement(), null));
179
			EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, true);
179
			EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, this.getEntity());
180 180
	}
181 181

  
182 182
	@Override

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)