cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 29 Apr 2021 15:10:01 +0000 (17:10 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 29 Apr 2021 15:10:01 +0000 (17:10 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java

index 7f74a248e734ee6743053de76b4dfbca241bd886..ed367557abb02293ce6d605a2b0ab477c3b8764a 100755 (executable)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.view.e4.details;
 
 import java.util.Collection;
@@ -148,7 +147,6 @@ import eu.etaxonomy.taxeditor.view.detail.CdmSectionPart;
 import eu.etaxonomy.taxeditor.view.e4.AbstractCdmDataViewerE4;
 
 /**
- *
  * The DetailsViewer handles the content of the details view (
  * {@link DetailsPartE4}).<br>
  * Depending on the type of the selected element the section of the details view
@@ -156,7 +154,6 @@ import eu.etaxonomy.taxeditor.view.e4.AbstractCdmDataViewerE4;
  *
  * @author pplitzner
  * @date 18.07.2017
- *
  */
 public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
@@ -434,13 +431,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
             createEmptySection(null, rootElement);
         }
         layout();
-
-    }
-
-
-    private void createFeatureTreeSectionForTree(RootElement rootElement) {
-        // TODO Auto-generated method stub
-
     }
 
     private void createGroupSection(RootElement parent) {
@@ -453,23 +443,19 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
         addPart(grantedAuthorityDetailSection);
     }
 
-    /** {@inheritDoc} */
     @Override
     public ISelection getSelection() {
         return selection;
     }
 
-    /** {@inheritDoc} */
     @Override
     public void setSelection(ISelection selection, boolean reveal) {
 
         this.selection = selection;
-
         if(this.selection!=null){
             SelectionChangedEvent selectionChangedEvent = new SelectionChangedEvent(this, selection);
             fireSelectionChanged(selectionChangedEvent);
         }
-
     }
 
     private void createTaxonSections(RootElement parent) {
@@ -572,11 +558,8 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
             addPart(nameRelationshipSection);
         }
 
-
         addPart(parsingMessagesSection);
-
         addPart(nonViralNameSection);
-
     }
 
     private void createNameSections(RootElement parent) {
@@ -608,7 +591,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 //        addPart(protologSection);
         addPart(typeDesignationSection);
         addPart(nameRelationshipSection);
-
     }
 
     private void createReferenceSections(RootElement parent) {
@@ -709,7 +691,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
         addPart(descriptionDetailSection);
         addPart(descriptionSourceSection);
-
     }
 
     private void createImageGallerySection(RootElement parent) {
@@ -767,7 +748,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
         DerivedUnitTypeDesignationSection derivedUnitTypeDesignationSection = formFactory.createDerivedUnitTypeDesignationSection(getConversationHolder(), parent, this, StoreUtil.getSectionStyle(DerivedUnitTypeDesignationSection.class, getInput().getClass().getCanonicalName()));
         addPart(derivedUnitTypeDesignationSection);
-
     }
 
     private void createFieldUnitSection(RootElement parent) {
@@ -788,7 +768,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
         DeterminationDetailSection determinationDetailSection = formFactory.createDeterminationDetailSection(getConversationHolder(), parent, this, StoreUtil.getSectionStyle(DeterminationDetailSection.class, getInput().getClass().getCanonicalName()));
         addPart(determinationDetailSection);
-
     }
 
     private void createTissueSampleSection(RootElement parent) {
@@ -842,7 +821,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
         SequenceContigFileCollectionDetailSection contigFileSection = formFactory.createSequenceContigFileCollectionDetailSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(SequenceContigFileCollectionDetailSection.class, getInput().getClass().getCanonicalName(), true));
 
-
         addPart(section);
         addPart(referenceSection);
         addPart(contigFileSection);
@@ -856,7 +834,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
         SingleReadPherogramCollectionDetailSection pherogramSection = formFactory.createSingleReadPherogramCollectionDetailSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(SingleReadPherogramCollectionDetailSection.class, getInput().getClass().getCanonicalName(), true));
         addPart(pherogramSection);
-
     }
 
     private void createMediaSpecimenSection(RootElement parent) {
@@ -868,7 +845,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
         RightsSection rightsSection = formFactory.createRightsSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(RightsSection.class, getInput().getClass().getCanonicalName()));
 //        rightsSection.setEntity(generalSection.getEntity().innerDerivedUnit());
         addPart(rightsSection);
-
     }
 
     private void createFeatureTreeSectionForDto(RootElement parent) {
@@ -884,13 +860,11 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
     private void createFeatureNodeSection(RootElement parent) {
         TermNodeDetailSection featureDistributionSection = formFactory.createFeatureNodeDetailSection(getConversationHolder(), parent, this, StoreUtil.getSectionStyle(TermNodeDetailSection.class, getInput().getClass().getCanonicalName(), true));
-
         addPart(featureDistributionSection);
     }
 
     private void createFeatureDistributionSection(RootElement parent) {
         FeatureDistributionDetailSection featureDistributionSection = formFactory.createFeatureDistributionDetailSection(getConversationHolder(), parent, this, StoreUtil.getSectionStyle(FeatureDistributionDetailSection.class, getInput().getClass().getCanonicalName(), true));
-
         addPart(featureDistributionSection);
     }
 
@@ -923,12 +897,8 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
     private void createUseRecordSection(RootElement parent) {
         UseRecordDetailSection descriptionUseRecordSection = formFactory.createUseRecordDetailSection(getConversationHolder(), parent, this,StoreUtil.getSectionStyle(UseRecordDetailSection.class, getInput().getClass().getCanonicalName(), true));
-
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
-
         addPart(descriptionUseRecordSection);
-
-
     }
 
     private void createUserSection(RootElement parent) {
@@ -947,7 +917,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
 
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
 
-
         NonViralNameDetailSection nonViralNameSection = formFactory
                 .createNonViralNameDetailSection(getConversationHolder(), parent, this, true,
                         StoreUtil.getSectionStyle(NonViralNameDetailSection.class, getInput().getClass().getCanonicalName(), true));
@@ -960,7 +929,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
         addPart(referenceDetailSection);
 
-
         NomenclaturalStatusSection nomenclaturalStatusSection = formFactory.createNomenclaturalStatusSection(getConversationHolder(), parent,
                        StoreUtil.getSectionStyle(NomenclaturalStatusSection.class, getInput().getClass().getCanonicalName(), true));
         formFactory.createHorizontalSeparator(parent, SWT.BORDER);
@@ -977,7 +945,6 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
                NameRelationshipDetailSection nameRelationshipSection = formFactory.createNameRelationshipDetailSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(NameRelationshipDetailSection.class, getInput().getClass().getCanonicalName()));
                formFactory.createHorizontalSeparator(parent, SWT.BORDER);
                addPart(nameRelationshipSection);
-
     }
 
     private void createTaxonRelationshipSection(RootElement parent) {
@@ -993,7 +960,7 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
     }
 
     private void createDefinedTermSection(RootElement parent) {
-        DefinedTermDetailSection definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, StoreUtil.getSectionStyle(DefinedTermDetailSection.class, getInput().getClass().getCanonicalName(), true));
+        DefinedTermDetailSection<?> definedTermDetailSection = formFactory.createDefinedTermDetailSection(getInput().getClass(), getConversationHolder(), parent, this, StoreUtil.getSectionStyle(DefinedTermDetailSection.class, getInput().getClass().getCanonicalName(), true));
         addPart(definedTermDetailSection);
         TermMediaSection termMediaSection = formFactory.createTermMediaSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(DefinedTermDetailSection.class, getInput().getClass().getCanonicalName(), true));
         addPart(termMediaSection);
@@ -1028,6 +995,4 @@ public class DetailsViewerE4 extends AbstractCdmDataViewerE4 {
            }
         }
     }
-
-
-}
+}
\ No newline at end of file