From 7da83756b04f319c68b9ccaa1be638088e62d438 Mon Sep 17 00:00:00 2001
From: Patric Plitzner
Date: Mon, 2 Mar 2015 12:29:20 +0000
Subject: [PATCH] - added checkbox for Descriptions to specimen delete dialog
---
.../DeleteSpecimenConfiguratorComposite.java | 9 +++++++++
1 file changed, 9 insertions(+)
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 9435dbff7..720b4e865 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
@@ -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;
}
}
--
2.34.1