Project

General

Profile

Revision d728f00f

IDd728f00fbfb5b64be4c1f1fc3c6bd4d1162f42c7
Parent 065e4df4
Child cae7d9c1

Added by Patrick Plitzner 12 months ago

fix #7877 Fix refresh problem of wizard detail elements

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailElement.java
105 105
	protected void updateContent() {
106 106
		removeElements();
107 107
		createControls(this, entity, SWT.NONE);
108
//		StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
109 108
		updateControlStates();
110 109
	}
111 110

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NameDetailElement.java
28 28
import eu.etaxonomy.cdm.strategy.parser.ParserProblem;
29 29
import eu.etaxonomy.taxeditor.preference.NameDetailsConfigurator;
30 30
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
31
import eu.etaxonomy.taxeditor.store.StoreUtil;
31 32
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
32 33
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
33 34
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement;
......
282 283
			getEntity().setRank(combo_rank.getSelection());
283 284
			clearCheckRankWarnings();
284 285
			updateContent();
286
            //this is needed for the "new" wizards in order to redraw correctly
287
            StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
285 288
		}
286 289
		else if(eventSource == text_appendedPhrase){
287 290
			getEntity().setAppendedPhrase(text_appendedPhrase.getText());
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailElement.java
20 20
import eu.etaxonomy.taxeditor.model.MessagingUtils;
21 21
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
22 22
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
23
import eu.etaxonomy.taxeditor.store.StoreUtil;
23 24
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement;
24 25
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
25 26
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
......
192 193
				getEntity().setNameType(combo_nomenclaturalCode.getSelection());
193 194

  
194 195
				this.updateContent();
196
	            //this is needed for the "new" wizards in order to redraw correctly
197
	            StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
195 198
				section_hybrid.setEntity(getEntity());
196 199
				section_author.setEntity(getEntity());
197 200
				section_name.setEntity(getEntity());
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailElement.java
24 24
import eu.etaxonomy.cdm.model.reference.Reference;
25 25
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
26 26
import eu.etaxonomy.cdm.model.reference.ReferenceType;
27
import eu.etaxonomy.taxeditor.store.StoreUtil;
27 28
import eu.etaxonomy.taxeditor.ui.combo.EnumComboElement;
28 29
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
29 30
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent;
......
409 410
		if (eventSource == combo_referenceType) {
410 411
			getEntity().setType(combo_referenceType.getSelection());
411 412
			updateContent();
413
	        //this is needed for the "new" wizards in order to redraw correctly
414
			StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
412 415
		} else if (eventSource == element_timePeriod) {
413 416
			getEntity().setDatePublished(element_timePeriod.getTimePeriod());
414 417
			clearException();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)