Project

General

Profile

« Previous | Next » 

Revision c31186f9

Added by Patrick Plitzner over 5 years ago

ref #7575 Remove toggle button

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrix.java
162 162

  
163 163
    private boolean isShowTooltips = true;
164 164

  
165
    private boolean isExactQuantitativeValue = true;
166

  
167 165
    public CharacterMatrix(Composite parent, CharacterMatrixPart part) {
168 166
        super(parent, SWT.NONE);
169 167
        this.part = part;
......
646 644
        return isShowTooltips;
647 645
    }
648 646

  
649
    public void toogleExactQuantitativeValue() {
650
        this.isExactQuantitativeValue = !this.isExactQuantitativeValue;
651
    }
652

  
653
    public boolean isExactQuantitativeValue() {
654
        return isExactQuantitativeValue;
655
    }
656

  
657 647
}
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixToolbar.java
62 62

  
63 63
    private void init() {
64 64
        setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
65
        setLayout(new GridLayout(11, false));
65
        setLayout(new GridLayout(10, false));
66 66

  
67 67
        wsLabel = new Label(this, SWT.NONE);
68 68

  
69
        Button btnToggleExactQuantValue = new Button(this, SWT.TOGGLE);
70 69
        Button btnToggleTooltips = new Button(this, SWT.TOGGLE);
71 70
        Button btnToggleTree = new Button(this, SWT.PUSH);
72 71
        Button btnToggleFlat = new Button(this, SWT.PUSH);
......
77 76
        Button btnManageState = new Button(this, SWT.PUSH);
78 77
        Button btnExcelExport = new Button(this, SWT.PUSH);
79 78

  
80
        /**
81
         * Toggle exact quantitative value
82
         */
83
        initButton(
84
                btnToggleExactQuantValue,
85
                null,
86
                "Show exact values",
87
                "Exact/Aggregate",
88
                true,
89
                true,
90
                (e)->matrix.toogleExactQuantitativeValue()
91
                );
92 79
        /**
93 80
         * Toggle tooltips button
94 81
         */

Also available in: Unified diff