Project

General

Profile

Download (1.27 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.taxeditor.molecular.editor.e4.handler;
10

    
11

    
12
import javax.inject.Named;
13

    
14
import org.eclipse.e4.core.di.annotations.Execute;
15
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
16
import org.eclipse.e4.ui.services.IServiceConstants;
17

    
18
import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor;
19
import eu.etaxonomy.taxeditor.molecular.editor.PherogramViewPart;
20
import eu.etaxonomy.taxeditor.molecular.editor.e4.PherogramPartE4;
21

    
22

    
23

    
24

    
25
/**
26
 * Toggles whether probability values (substitution, overcall and undercall) should be displayed
27
 * in pherogram areas of {@link AlignmentEditor} or {@link PherogramViewPart}.
28
 *
29
 * @author Ben Stöver
30
 * @date 23.06.2015
31
 */
32
public class ToggleShowPherogramProbabilitiesHandlerE4 {
33

    
34
    @Execute
35
    public void doExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
36
        PherogramPartE4 pherogramPart = (PherogramPartE4) activePart.getObject();
37
        pherogramPart.getPherogramView().getTraceCurveView().getFormats().toggleShowProbabilityValues();
38
    }
39
}
(16-16/17)