Project

General

Profile

« Previous | Next » 

Revision 27522e15

Added by Katja Luther over 6 years ago

ref #6693: fix update of details view for changed nameType

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/AuthorshipDetailSection.java
61 61
			AbstractCdmDetailSection<INonViralName> parentElement, int style) {
62 62
	    return formFactory.createAuthorshipDetailElement(parentElement, style);
63 63
	}
64
	
65
	public void updateContent(){
66
		((AuthorshipDetailElement)this.detailElement).updateContent();
67
	}
64 68

  
65 69
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/HybridDetailSection.java
21 21
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
22 22
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
23 23
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
24
import eu.etaxonomy.taxeditor.ui.section.description.detail.AbstractDetailedDescriptionDetailElement;
24 25

  
25 26
/**
26 27
 * @author n.hoffmann
......
73 74
	    return formFactory.createHybridDetailElement(parentElement);
74 75
	}
75 76

  
77
	public void updateContent() {
78
		((AbstractCdmDetailElement)this.detailElement).setEntity(getEntity());
79
		
80
	}
81

  
76 82
}
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailElement.java
86 86

  
87 87
        	}
88 88
        	
89
        	if (entity.getNameType().equals(NomenclaturalCode.ICNB)){
90
        		if (PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_NAME_DETAILS_SECTION_NAME_APPROBATION)){
91
    			 text_nameApprobation = formFactory.createTextWithLabelElement(formElement, "Name Approbation", entity.getNameApprobation(),style);
92
        		}
93
        	}
94 89

  
95 90
        }
96 91

  
......
126 121
//		if(combo_nomenclaturalCode!=null){
127 122
//		    combo_nomenclaturalCode.setEnabled(false);
128 123
//		}
129

  
124
		
130 125
		if(toggleable_cache!=null){
131 126
		    toggleable_cache.setEnabled(getEntity().isProtectedTitleCache() || getEntity().isProtectedFullTitleCache());
132 127
		    setIrrelevant(toggleable_cache.getState(),
......
193 188
		} else if (eventSource == combo_nomenclaturalCode){
194 189
			getEntity().setNameType(combo_nomenclaturalCode.getSelection());
195 190
			this.updateContent();
196
			section_name.updateContent();
191
			section_hybrid.setEntity(getEntity());
192
			section_author.setEntity(getEntity());
193
			section_name.setEntity(getEntity());
197 194
		} else if(eventSource == this.text_nameApprobation){
198 195
            ((IBacterialName)getEntity()).setNameApprobation(text_nameApprobation.getText());
199 196
        }

Also available in: Unified diff