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.e4.AlignmentEditorE4;
|
19
|
import eu.etaxonomy.taxeditor.molecular.editor.e4.PherogramPartE4;
|
20
|
|
21
|
|
22
|
|
23
|
|
24
|
/**
|
25
|
* Toggles whether probability values (substitution, overcall and undercall) should be displayed
|
26
|
* in pherogram areas of {@link AlignmentEditorE4} or {@link PherogramPartE4}.
|
27
|
*
|
28
|
* @author Ben Stöver
|
29
|
* @date 23.06.2015
|
30
|
*/
|
31
|
public class ToggleShowPherogramProbabilitiesHandlerE4 {
|
32
|
|
33
|
@Execute
|
34
|
public void doExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
|
35
|
PherogramPartE4 pherogramPart = (PherogramPartE4) activePart.getObject();
|
36
|
pherogramPart.getPherogramView().getTraceCurveView().getFormats().toggleShowProbabilityValues();
|
37
|
}
|
38
|
}
|