Project

General

Profile

Download (1.16 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2019 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.preference;
10

    
11
import org.eclipse.jface.preference.BooleanFieldEditor;
12

    
13
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
14
import eu.etaxonomy.taxeditor.l10n.Messages;
15
import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
16

    
17
/**
18
 * @author k.luther
19
 * @since 18.01.2019
20
 *
21
 */
22
public class TaxonSearchPreferences extends FieldEditorPreferencePageE4{
23

    
24
    /**
25
     * {@inheritDoc}
26
     */
27
    @Override
28
    protected void createFieldEditors() {
29
        addField(new BooleanFieldEditor(IPreferenceKeys.SEARCH_OPEN_RESULTS_IN_SEPARATE_WINDOWS,
30
                Messages.TaxonSearchPreferences_0,
31
                getFieldEditorParent()));
32
        addField(new BooleanFieldEditor(PreferencesUtil.createPreferenceString(PreferencePredicate.SortTaxaByRankAndName.getKey()),
33
                Messages.SearchDialogPreferences_3,
34
                getFieldEditorParent()));
35

    
36
    }
37

    
38
}
(52-52/57)