Revision df947da5
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
2490 | 2490 |
addAndAdaptSection(parentElement, section); |
2491 | 2491 |
return section; |
2492 | 2492 |
} |
2493 |
|
|
2494 | 2493 |
public DescriptionElementSourceSection createDescriptionElementSourceSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){ |
2495 | 2494 |
DescriptionElementSourceSection section = new DescriptionElementSourceSection(this, conversation, parentElement, style); |
2496 | 2495 |
addAndAdaptSection(parentElement, section); |
2497 | 2496 |
return section; |
2498 | 2497 |
} |
2498 |
public DescriptionElementSourceSection createDescriptionElementSourceSection(ConversationHolder conversation, ICdmFormElement parentElement, Reference defaultSource, int style){ |
|
2499 |
DescriptionElementSourceSection section = new DescriptionElementSourceSection(this, conversation, parentElement, defaultSource, style); |
|
2500 |
addAndAdaptSection(parentElement, section); |
|
2501 |
return section; |
|
2502 |
} |
|
2499 | 2503 |
|
2500 | 2504 |
public ExtensionSection createExtensionSection(ConversationHolder conversation, ICdmFormElement parentElement, int style){ |
2501 | 2505 |
ExtensionSection section = new ExtensionSection(this, conversation, parentElement, style); |
... | ... | |
2785 | 2789 |
} else if (entity instanceof DescriptionElementSource && parentElement.getEntity() instanceof CommonTaxonName) { |
2786 | 2790 |
element = new CommonNameSourceElement(this, parentElement, (DescriptionElementSource) entity, |
2787 | 2791 |
removeListener, style); |
2792 |
} else if (entity instanceof DescriptionElementSource && parentElement.getEntity() instanceof Distribution) { |
|
2793 |
Composite parent = null; |
|
2794 |
if (parentElement instanceof DescriptionElementSourceSection){ |
|
2795 |
parent = ((DescriptionElementSourceSection)parentElement).getParent(); |
|
2796 |
} |
|
2797 |
if(parent != null){ |
|
2798 |
Composite grandParent = parent.getParent(); |
|
2799 |
} |
|
2800 |
element = new DescriptionElementSourceElement(this, parentElement, (DescriptionElementSource) entity, |
|
2801 |
removeListener, style, false); |
|
2788 | 2802 |
} else if (entity instanceof DescriptionElementSource) { |
2789 | 2803 |
element = new DescriptionElementSourceElement(this, parentElement, (DescriptionElementSource) entity, |
2790 | 2804 |
removeListener, style, false); |
2791 |
} else if (entity instanceof TaxonNodeAgentRelation) {
|
|
2805 |
}else if (entity instanceof TaxonNodeAgentRelation) { |
|
2792 | 2806 |
element = new TaxonNodeAgentRelationCollectionElement(this, parentElement, (TaxonNodeAgentRelation) entity, |
2793 | 2807 |
removeListener,backgroundColor, style); |
2794 | 2808 |
} |
Also available in: Unified diff
ref #8239: disable details for missing rights