From c31186f95e9385d3f8f9732df2a180ed641538b3 Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Mon, 23 Jul 2018 18:20:38 +0200
Subject: [PATCH 1/1] ref #7575 Remove toggle button
---
.../matrix/CharacterMatrix.java | 10 ----------
.../matrix/CharacterMatrixToolbar.java | 15 +--------------
2 files changed, 1 insertion(+), 24 deletions(-)
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
index 93bd66270..9a1512b4c 100644
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
+++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
@@ -162,8 +162,6 @@ public class CharacterMatrix extends Composite {
private boolean isShowTooltips = true;
- private boolean isExactQuantitativeValue = true;
-
public CharacterMatrix(Composite parent, CharacterMatrixPart part) {
super(parent, SWT.NONE);
this.part = part;
@@ -646,12 +644,4 @@ public class CharacterMatrix extends Composite {
return isShowTooltips;
}
- public void toogleExactQuantitativeValue() {
- this.isExactQuantitativeValue = !this.isExactQuantitativeValue;
- }
-
- public boolean isExactQuantitativeValue() {
- return isExactQuantitativeValue;
- }
-
}
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java
index 2f46c7e8d..2073e6da7 100644
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java
+++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java
@@ -62,11 +62,10 @@ public class CharacterMatrixToolbar extends Composite {
private void init() {
setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
- setLayout(new GridLayout(11, false));
+ setLayout(new GridLayout(10, false));
wsLabel = new Label(this, SWT.NONE);
- Button btnToggleExactQuantValue = new Button(this, SWT.TOGGLE);
Button btnToggleTooltips = new Button(this, SWT.TOGGLE);
Button btnToggleTree = new Button(this, SWT.PUSH);
Button btnToggleFlat = new Button(this, SWT.PUSH);
@@ -77,18 +76,6 @@ public class CharacterMatrixToolbar extends Composite {
Button btnManageState = new Button(this, SWT.PUSH);
Button btnExcelExport = new Button(this, SWT.PUSH);
- /**
- * Toggle exact quantitative value
- */
- initButton(
- btnToggleExactQuantValue,
- null,
- "Show exact values",
- "Exact/Aggregate",
- true,
- true,
- (e)->matrix.toogleExactQuantitativeValue()
- );
/**
* Toggle tooltips button
*/
--
2.34.1