+
// $Id$
/**
* Copyright (C) 2011 EDIT
/** {@inheritDoc} */
@Override
protected void showParts() {
+ // FIXME (CM) : Need to clean out this code.
+ // Too much type checking to decide which detail view to display.
+ // Need to build in a mechanism where navigators / editors are 'aware'
+ // of the corresponding detail viewer.
if (getInput() instanceof TaxonBase) {
createTaxonSections(rootElement);
private void createPolytomousKeyNodeSection(RootElement parent) {
destroySections();
- PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = (PolytomousKeyNodeDetailSection) formFactory
- .createCdmDetailSection(DetailType.POLYTOMOUS_KEY_NODE,
- getConversationHolder(), parent, this, Section.TWISTIE
- | Section.EXPANDED);
+ PolytomousKeyDetailSection polytomousKeyDetailSection = (PolytomousKeyDetailSection) formFactory
+ .createCdmDetailSection(DetailType.POLYTOMOUS_KEY,
+ getConversationHolder(), parent, this, Section.TWISTIE
+ | Section.COMPACT);
+
+ formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+
+ PolytomousKeyNodeDetailSection polytomousKeyNodeDetailSection = (PolytomousKeyNodeDetailSection) formFactory
+ .createCdmDetailSection(DetailType.POLYTOMOUS_KEY_NODE,
+ getConversationHolder(), parent, this, Section.TWISTIE
+ | Section.EXPANDED);
+
+ formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+
+ GeographicalScopeDetailSection geographicalScopeDetailSection = (GeographicalScopeDetailSection) formFactory
+ .createEntityDetailSection(EntityDetailType.GEOGRAPHICAL_SCOPE,
+ getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
+
+ formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+
+ ScopeRestrictionSection scopeRestrictionSection = (ScopeRestrictionSection) formFactory
+ .createEntityDetailSection(EntityDetailType.SCOPE_RESTRICTION,
+ getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
+
+ formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+
+ TaxonomicScopeSection taxonomicScopeSection = (TaxonomicScopeSection) formFactory
+ .createEntityDetailSection(EntityDetailType.TAXONOMIC_SCOPE,
+ getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
+ addPart(polytomousKeyDetailSection);
+ addPart(geographicalScopeDetailSection);
+ addPart(scopeRestrictionSection);
+ addPart(taxonomicScopeSection);
addPart(polytomousKeyNodeDetailSection);
}