Add scope restrictions to PolytomousKey details view #5280
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / key / PolytomousKeyDetailElement.java
index de294870ebe18393972e29494ad4ee6262be2822..d6b4286ed10a960c0fc8da0b8d7503b60fdde2eb 100644 (file)
@@ -26,6 +26,7 @@ public class PolytomousKeyDetailElement extends
     private NumberWithLabelElement numberStartNumber;
     private TaxonomicScopeSection sectionTaxonomicScope;
     private GeoScopePolyKeyDetailSection sectionGeoScopes;
+    private ScopeRestrictionSection sectionScopeRestriction;
 
        public PolytomousKeyDetailElement(CdmFormFactory formFactory,
                        ICdmFormElement formElement) {
@@ -46,6 +47,10 @@ public class PolytomousKeyDetailElement extends
            sectionGeoScopes = formFactory.createGeoScopePolyKeyDetailSection(getConversationHolder(), formElement, SWT.NULL);
            sectionGeoScopes.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
            sectionGeoScopes.setEntity(entity);
+
+           sectionScopeRestriction = formFactory.createScopeRestrictionSection(getConversationHolder(), formElement, SWT.NULL);
+           sectionScopeRestriction.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
+           sectionScopeRestriction.setEntity(entity);
        }
 
        public String getText() {