From 5fcd1280b820e51d3f20c9c2a70b9067b5500074 Mon Sep 17 00:00:00 2001 From: Patric Plitzner Date: Mon, 2 Mar 2015 12:10:45 +0000 Subject: [PATCH] - added checkbox for IndividualsAssociations to specimen delete dialog --- .../DeleteSpecimenConfiguratorComposite.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/deleteConfigurator/DeleteSpecimenConfiguratorComposite.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/deleteConfigurator/DeleteSpecimenConfiguratorComposite.java index 6d4e0b24d..9435dbff7 100644 --- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/deleteConfigurator/DeleteSpecimenConfiguratorComposite.java +++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/deleteConfigurator/DeleteSpecimenConfiguratorComposite.java @@ -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; } } -- 2.34.1