ref #7575 Remove toggle button
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 23 Jul 2018 16:20:38 +0000 (18:20 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 23 Jul 2018 16:20:38 +0000 (18:20 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java

index 93bd66270c549464e23dd3d9acc4bec9f71ac004..9a1512b4cf160ecb4c156aca70d95f0fc2495841 100644 (file)
@@ -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;
-    }
-
 }
index 2f46c7e8da0b0687eef638b57094b5d95325fd66..2073e6da78e06d5819cc7e8fdbd27efcbb202d92 100644 (file)
@@ -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
          */