Project

General

Profile

Download (1.21 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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.editor.descriptiveDataSet.handler;
10

    
11
import org.eclipse.e4.ui.workbench.modeling.EPartService;
12
import org.eclipse.swt.widgets.Shell;
13

    
14
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
15
import eu.etaxonomy.taxeditor.editor.AppModelId;
16
import eu.etaxonomy.taxeditor.editor.EditorUtil;
17
import eu.etaxonomy.taxeditor.handler.defaultHandler.e4.DefaultOpenHandlerBaseE4;
18

    
19
public class OpenCharacterMatrixHandler extends DefaultOpenHandlerBaseE4<DescriptiveDataSet>{
20

    
21
    @Override
22
    protected void open(DescriptiveDataSet entity, Shell shell, EPartService partService) {
23
        EditorUtil.openCharacterMatrix(entity.getUuid(), modelService, partService, application);
24
    }
25

    
26
    @Override
27
    protected boolean canExecute(Object entity) {
28
        return true;
29
    }
30

    
31
    @Override
32
    protected String getPartId() {
33
        return AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_DESCRIPTIVEDATASET_MATRIX_CHARACTERMATRIXPART;
34
    }
35
}
(4-4/6)