From 4da448619a9901df318aa3315abb78fc0a0fd084 Mon Sep 17 00:00:00 2001 From: Patrick Plitzner Date: Mon, 21 Sep 2015 17:04:15 +0200 Subject: [PATCH] Trim code --- .../taxeditor/view/detail/DetailsViewer.java | 122 ------------------ 1 file changed, 122 deletions(-) diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java index c0bd141c4..2b2a60399 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java @@ -78,7 +78,6 @@ import eu.etaxonomy.taxeditor.ui.section.group.MemberDetailSection; import eu.etaxonomy.taxeditor.ui.section.identifier.IdentifierDetailSection; import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyDetailSection; import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyNodeDetailSection; -import eu.etaxonomy.taxeditor.ui.section.key.TaxonomicScopeSection; import eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection; import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection; import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection; @@ -131,17 +130,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { private ISelection selection; - /** - *

- * Constructor for DetailsViewer. - *

- * - * @param parent - * a {@link org.eclipse.swt.widgets.Composite} object. - * @param viewPart - * a {@link eu.etaxonomy.taxeditor.view.AbstractCdmViewPart} - * object. - */ public DetailsViewer(Composite parent, AbstractCdmViewPart viewPart) { super(parent, viewPart); } @@ -334,9 +322,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } - /** - * @param rootElement - */ private void createEmptySection(RootElement parent) { destroySections(); @@ -345,9 +330,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(emptySection); } - /** - * @param rootElement - */ private void createGroupSection(RootElement parent) { destroySections(); @@ -360,11 +342,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(grantedAuthorityDetailSection); } - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.viewers.Viewer#getSelection() - */ /** {@inheritDoc} */ @Override public ISelection getSelection() { @@ -381,11 +358,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } } - /** - * createTaxonSections(RootElement parent) - * - * @param parent - */ private void createTaxonSections(RootElement parent) { destroySections(); @@ -424,7 +396,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(nameRelationshipSection); } - addPart(parsingMessagesSection); addPart(taxonBaseDetailSection); addPart(nonViralNameSection); @@ -432,11 +403,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(referenceDetailSection); } - /** - * createNameSections - * - * @param parent - */ private void createNameSections(RootElement parent) { destroySections(); NonViralNameDetailSection nonViralNameSection = formFactory.createNonViralNameDetailSection(getConversationHolder(), parent, this, @@ -470,11 +436,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } } - /** - * createReferenceSections - * - * @param parent - */ private void createReferenceSections(RootElement parent) { destroySections(); @@ -484,11 +445,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(referenceDetailSection); } - /** - * createTeamOrPersonBaseDetailSection - * - * @param parent - */ private void createTeamOrPersonBaseDetailSection(RootElement parent) { destroySections(); TeamOrPersonBaseDetailSection teamOrPersonBaseDetailSection = formFactory.createTeamOrPersonBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); @@ -496,11 +452,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(teamOrPersonBaseDetailSection); } - /** - * createTeamDetailSection - * - * @param parent - */ private void createTeamDetailSection(RootElement parent) { destroySections(); TeamDetailSection teamDetailSection = formFactory.createTeamDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); @@ -508,22 +459,12 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(teamDetailSection); } - /** - * createPersonDetailSection - * - * @param parent - */ private void createPersonDetailSection(RootElement parent) { destroySections(); PersonDetailSection personDetailSection = formFactory.createPersonDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); addPart(personDetailSection); } - /** - * createDescriptionElementSection - * - * @param parent - */ private void createDescriptionElementSection(RootElement parent) { destroySections(); @@ -544,11 +485,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(descriptionElementMediaSection); } - /** - * createDescriptionSection - * - * @param parent - */ private void createDescriptionSection(RootElement parent) { destroySections(); DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); @@ -580,22 +516,12 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(scopeSection); } - /** - * createDescriptionSection - * - * @param parent - */ private void createSpecimenDescriptionSection(RootElement parent) { destroySections(); DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); addPart(descriptionDetailSection); } - /** - * Creates the use Description section - * - * @param parent - */ private void createUseDescriptionSection(RootElement parent) { destroySections(); DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); @@ -611,10 +537,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } - - /** - * @param rootElement - */ private void createImageGallerySection(RootElement parent) { destroySections(); DescriptionDetailSection descriptionDetailSection = formFactory.createDescriptionDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); @@ -622,12 +544,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(descriptionDetailSection); } - /** - * createMediaElementSection - * - * @param parent - */ - private void createMediaElementSection(RootElement parent) { destroySections(); @@ -636,11 +552,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(mediaDetailSection); } - /** - * createDerivedUnitBaseElementSection - * - * @param parent - */ private void createDerivedUnitBaseElementSection(RootElement parent) { destroySections(); @@ -789,11 +700,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } - - - /** - * @param rootElement - */ private void createFeatureDistributionSection(RootElement parent) { destroySections(); @@ -802,11 +708,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(featureDistributionSection); } - /** - * createPolytomousKeyNodeSection - * - * @param parent - */ private void createPolytomousKeyNodeSection(RootElement parent) { destroySections(); @@ -821,11 +722,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } - /** - * create the UseRecordSection - * - * @param parent - */ private void createUseRecordSection(RootElement parent) { destroySections(); @@ -838,11 +734,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { } - /** - * createUserSection - * - * @param parent - */ private void createUserSection(RootElement parent) { destroySections(); @@ -854,11 +745,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(groupByUserDetailSection); } - /** - * createTaxonRelationshipSection - * - * @param parent - */ private void createTaxonRelationshipSection(RootElement parent) { destroySections(); @@ -869,9 +755,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(referencedEntityBaseDetailSection); } - /** - * @param rootElement - */ private void createTermVocabularySection(RootElement parent) { destroySections(); @@ -879,11 +762,6 @@ public class DetailsViewer extends AbstractCdmDataViewer { addPart(termVocabularyDetailSection); } - /** - * createDefinedTermSection - * - * @param parent - */ private void createDefinedTermSection(RootElement parent) { destroySections(); -- 2.34.1