- added checkbox for Descriptions to specimen delete dialog
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / dialog / deleteConfigurator / DeleteSpecimenConfiguratorComposite.java
index 9435dbff707086b6565a4458a4f4e53c71b82f5f..720b4e865d48b0bf95ca38e57c076feb3a3eb999 100644 (file)
@@ -39,6 +39,7 @@ public class DeleteSpecimenConfiguratorComposite extends Composite {
     private final Button btnDeleteFromTypeDesignation;
     private final Button btnDeleteMolecularData;
     private final Button btnDeleteIndividualsassociationsfactual;
+    private final Button btnDeleteSpecimenDescription;
 
     /**
      * Create the composite.
@@ -68,6 +69,10 @@ public class DeleteSpecimenConfiguratorComposite extends Composite {
 
         btnDeleteIndividualsassociationsfactual = new Button(this, SWT.CHECK);
         btnDeleteIndividualsassociationsfactual.setText("Delete from factual data");
+
+        btnDeleteSpecimenDescription = new Button(this, SWT.CHECK);
+        toolkit.adapt(btnDeleteSpecimenDescription, true, true);
+        btnDeleteSpecimenDescription.setText("Delete specimen description");
         m_bindingContext = initDataBindings();
 
     }
@@ -90,6 +95,10 @@ public class DeleteSpecimenConfiguratorComposite extends Composite {
         IObservableValue deleteFromIndividualsAssociationConfiguratorObserveValue = PojoProperties.value("deleteFromIndividualsAssociation").observe(configurator);
         bindingContext.bindValue(observeSelectionBtnDeleteIndividualsassociationsfactualObserveWidget, deleteFromIndividualsAssociationConfiguratorObserveValue, null, null);
         //
+        IObservableValue observeSelectionBtnDeleteSpecimenDescriptionObserveWidget = WidgetProperties.selection().observe(btnDeleteSpecimenDescription);
+        IObservableValue deleteFromDescriptionConfiguratorObserveValue = PojoProperties.value("deleteFromDescription").observe(configurator);
+        bindingContext.bindValue(observeSelectionBtnDeleteSpecimenDescriptionObserveWidget, deleteFromDescriptionConfiguratorObserveValue, null, null);
+        //
         return bindingContext;
     }
 }