private void createDerivedUnitBaseElementSection(RootElement parent) {
destroySections();
- GeneralDetailSection generalDetailSection = (GeneralDetailSection) formFactory.createCdmDetailSection(
- DetailType.DERIVED_UNIT_GENERAL, getConversationHolder(), parent, this, ExpandableComposite.TWISTIE
- | ExpandableComposite.EXPANDED);
+ GeneralDetailSection generalDetailSection = formFactory.createGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
- GatheringEventDetailSection gatheringEventDetailSection = (GatheringEventDetailSection) formFactory
- .createCdmDetailSection(DetailType.GATHERING_EVENT, getConversationHolder(), parent, this,
- ExpandableComposite.TWISTIE);
+ GatheringEventDetailSection gatheringEventDetailSection = formFactory.createGatheringEventDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
- FieldObservationDetailSection fieldObservationDetailSection = (FieldObservationDetailSection) formFactory
- .createCdmDetailSection(DetailType.FIELD_OBSERVATION, getConversationHolder(), parent, this,
- ExpandableComposite.TWISTIE);
+ FieldObservationDetailSection fieldObservationDetailSection = formFactory.createFieldObservationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
- DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = (DerivedUnitBaseDetailSection) formFactory
- .createCdmDetailSection(DetailType.DERIVED_UNIT, getConversationHolder(), parent, this,
- ExpandableComposite.TWISTIE);
+ DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
- DeterminationDetailSection determinationDetailSection = (DeterminationDetailSection) formFactory
- .createCdmDetailSection(DetailType.DETERMINATION, getConversationHolder(), parent, this,
- ExpandableComposite.TWISTIE);
+ DeterminationDetailSection determinationDetailSection = formFactory.createDeterminationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
addPart(generalDetailSection);
addPart(gatheringEventDetailSection);
addPart(fieldObservationDetailSection);
addPart(derivedUnitBaseDetailSection);
addPart(determinationDetailSection);
-
}
/**