Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.view.webimport.termimport;
10

    
11
import org.eclipse.jface.viewers.ComboViewer;
12
import org.eclipse.jface.viewers.TreeViewer;
13
import org.eclipse.swt.SWT;
14
import org.eclipse.swt.layout.GridData;
15
import org.eclipse.swt.layout.GridLayout;
16
import org.eclipse.swt.widgets.Combo;
17
import org.eclipse.swt.widgets.Composite;
18
import org.eclipse.swt.widgets.Tree;
19

    
20
/**
21
 * @author pplitzner
22
 * @since Apr 23, 2018
23
 *
24
 */
25
public class GfBioTerminologyImportComposite extends Composite{
26
    private TreeViewer treeTermHierarchy;
27
    private ComboViewer comboOntologies;
28

    
29
    public GfBioTerminologyImportComposite(Composite parent, int style) {
30
        super(parent, style);
31
        setLayout(new GridLayout(1, false));
32

    
33
        comboOntologies = new ComboViewer(this, SWT.NONE);
34
        Combo combo = comboOntologies.getCombo();
35
        combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
36

    
37
        treeTermHierarchy = new TreeViewer(this, SWT.BORDER);
38
        Tree tree = treeTermHierarchy.getTree();
39
        tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
40
    }
41
    public TreeViewer getTreeTermHierarchy() {
42
        return treeTermHierarchy;
43
    }
44
    public ComboViewer getComboOntologies() {
45
        return comboOntologies;
46
    }
47
}
(1-1/6)