Project

General

Profile

Download (1.05 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.e4.PherogramPartE4;
19

    
20

    
21

    
22
/**
23
 * Switches between the quality output types available for components displaying pherograms.
24
 *
25
 * @author Ben Stöver
26
 * @date 19.06.2015
27
 */
28
public class ChangePherogramQualityOutputTypeE4 {
29

    
30
    @Execute
31
    public void doExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
32
        PherogramPartE4 pherogramPart = (PherogramPartE4) activePart.getObject();
33
        pherogramPart.getPherogramView().getTraceCurveView().getFormats().changeQualityOutputType();
34
    }
35
}
(4-4/17)