Project

General

Profile

« Previous | Next » 

Revision 2f9887be

Added by Katja Luther over 5 years ago

ref #7163: restructure preferences and externalize strings in preferences

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/SearchPreferences.java
1 1
/**
2
* Copyright (C) 2018 EDIT
2
* Copyright (C) 2019 EDIT
3 3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5 5
*
......
8 8
*/
9 9
package eu.etaxonomy.taxeditor.preference;
10 10

  
11
import org.eclipse.jface.preference.BooleanFieldEditor;
11
import org.eclipse.swt.widgets.Composite;
12
import org.eclipse.swt.widgets.Control;
12 13

  
13
import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
14
import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
14 15

  
15 16
/**
16 17
 * @author k.luther
17
 * @since 16.10.2018
18
 * @since 18.01.2019
18 19
 *
19 20
 */
20
public class SearchPreferences extends FieldEditorPreferencePageE4 {
21
public class SearchPreferences extends CdmPreferencePage {
21 22

  
22 23
    /**
23 24
     * {@inheritDoc}
24 25
     */
25 26
    @Override
26
    protected void createFieldEditors() {
27

  
28
        addField(new BooleanFieldEditor(PreferencesUtil.createPreferenceString(IPreferenceKeys.IS_SEARCH_FOR_IDENTIFIER_AS_DEFAULT),
29
                "Set search for Identifier as default.",
30
                getFieldEditorParent()));
31
        addField(new BooleanFieldEditor(PreferencesUtil.createPreferenceString(IPreferenceKeys.SEARCH_FOR_IDENTIFIER_AND_TITLECACHE),
32
                "Search for identifier and titleCache, if identifier search is enabled",
33
                getFieldEditorParent()));
34

  
35

  
36

  
37

  
38

  
27
    protected Control createContents(Composite parent) {
28
        // TODO Auto-generated method stub
29
        return null;
39 30
    }
40 31

  
41 32
}

Also available in: Unified diff