- added checkbox for IndividualsAssociations to specimen delete dialog
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / dialog / deleteConfigurator / DeleteSpecimenConfiguratorComposite.java
index 6d4e0b24d8fcc8246f147b0d3b3b4a3f04ee2cc8..9435dbff707086b6565a4458a4f4e53c71b82f5f 100644 (file)
@@ -38,6 +38,7 @@ public class DeleteSpecimenConfiguratorComposite extends Composite {
     private final Button btnDeleteChildren;
     private final Button btnDeleteFromTypeDesignation;
     private final Button btnDeleteMolecularData;
+    private final Button btnDeleteIndividualsassociationsfactual;
 
     /**
      * Create the composite.
@@ -64,10 +65,12 @@ public class DeleteSpecimenConfiguratorComposite extends Composite {
 
         btnDeleteMolecularData = new Button(this, SWT.CHECK);
         btnDeleteMolecularData.setText("Delete molecular data");
+
+        btnDeleteIndividualsassociationsfactual = new Button(this, SWT.CHECK);
+        btnDeleteIndividualsassociationsfactual.setText("Delete from factual data");
         m_bindingContext = initDataBindings();
 
     }
-
     protected DataBindingContext initDataBindings() {
         DataBindingContext bindingContext = new DataBindingContext();
         //
@@ -83,6 +86,10 @@ public class DeleteSpecimenConfiguratorComposite extends Composite {
         IObservableValue deleteMolecularDataConfiguratorObserveValue = PojoProperties.value("deleteMolecularData").observe(configurator);
         bindingContext.bindValue(observeSelectionBtnDeleteMolecularDataObserveWidget, deleteMolecularDataConfiguratorObserveValue, null, null);
         //
+        IObservableValue observeSelectionBtnDeleteIndividualsassociationsfactualObserveWidget = WidgetProperties.selection().observe(btnDeleteIndividualsassociationsfactual);
+        IObservableValue deleteFromIndividualsAssociationConfiguratorObserveValue = PojoProperties.value("deleteFromIndividualsAssociation").observe(configurator);
+        bindingContext.bindValue(observeSelectionBtnDeleteIndividualsassociationsfactualObserveWidget, deleteFromIndividualsAssociationConfiguratorObserveValue, null, null);
+        //
         return bindingContext;
     }
 }