Project

General

Profile

« Previous | Next » 

Revision b78937cd

Added by Katja Luther over 6 years ago

ref #6159: fix disabling of distribution details

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/DistributionDetailElement.java
15 15
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
16 16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17 17
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
18
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementDetailElement;
19
import eu.etaxonomy.taxeditor.ui.section.description.DescriptionElementDetailSection;
20 18
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
21 19

  
22 20
/**
......
56 54
				formElement, "Area",
57 55
				entity.getArea(), EntitySelectionElement.NOTHING, style);
58 56
		ICdmFormElement parent = this.getParentElement();
59
		if (parent instanceof DescriptionElementDetailElement){
60
		    DescriptionElementDetailElement eParent = (DescriptionElementDetailElement)parent;
61
		    ICdmFormElement parent2 = eParent.getParentElement();
62
		    DescriptionElementDetailSection section = (DescriptionElementDetailSection) parent2;
63
		        namedAreaEditable = false;
64

  
65
		}
66
		selection_namedArea.setEnabled(namedAreaEditable);
67 57

  
68 58
        combo_presenceAbsence = formFactory.createTermComboElement(PresenceAbsenceTerm.class, this, "Distribution Status", entity.getStatus(), style);
69 59

  

Also available in: Unified diff