- removed dependencies to LibrAlign
[taxeditor.git] / eu.etaxonomy.taxeditor.molecular / src / eu / etaxonomy / taxeditor / molecular / handler / ToggleShowPherogramProbabilitiesHandler.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.taxeditor.molecular.handler;
11
12
13 import info.bioinfweb.libralign.pherogram.PherogramComponent;
14
15 import org.eclipse.core.commands.ExecutionEvent;
16 import org.eclipse.core.commands.ExecutionException;
17
18 import eu.etaxonomy.taxeditor.molecular.editor.AlignmentEditor;
19 import eu.etaxonomy.taxeditor.molecular.editor.PherogramViewPart;
20
21
22
23
24 /**
25 * Toggles whether probability values (substitution, overcall and undercall) should be displayed
26 * in pherogram areas of {@link AlignmentEditor} or {@link PherogramViewPart}.
27 *
28 * @author Ben Stöver
29 * @date 23.06.2015
30 */
31 public class ToggleShowPherogramProbabilitiesHandler extends AbstractPherogramComponentHandler {
32 @Override
33 public void doExecute(ExecutionEvent event, PherogramComponent component) throws ExecutionException {
34 component.getFormats().toggleShowProbabilityValues();
35 }
36 }