ref #10160: fix preference setting
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / SearchPreferences.java
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 import org.eclipse.swt.SWT;
13 import org.eclipse.swt.layout.GridData;
14 import org.eclipse.swt.layout.RowLayout;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.Control;
17 import org.eclipse.ui.internal.Workbench;
18
19 import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
20 import eu.etaxonomy.taxeditor.l10n.Messages;
21 import eu.etaxonomy.taxeditor.preference.menu.CdmPreferencePage;
22 import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
23
24 /**
25 * @author k.luther
26 * @since 18.01.2019
27 *
28 */
29 public class SearchPreferences extends FieldEditorPreferencePageE4 {
30
31
32 /**
33 * {@inheritDoc}
34 */
35 @Override
36 protected void createFieldEditors() {
37
38 addField(new BooleanFieldEditor(PreferencesUtil.createPreferenceString(IPreferenceKeys.SEARCH_OPEN_RESULTS_IN_SEPARATE_WINDOWS),
39 Messages.TaxonomicEditorGeneralPreferences_search_window,
40 getFieldEditorParent()));
41 }
42
43
44
45
46 }