Project

General

Profile

Download (1.24 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2014 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10
package eu.etaxonomy.taxeditor.preference;
11

    
12
import org.eclipse.jface.preference.BooleanFieldEditor;
13
import org.eclipse.jface.preference.FieldEditorPreferencePage;
14
import org.eclipse.ui.IWorkbench;
15
import org.eclipse.ui.IWorkbenchPreferencePage;
16

    
17
/**
18
 * @author pplitzner
19
 * @date 13.02.2014
20
 *
21
 */
22
public class MediaPreferences extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
23

    
24
    /* (non-Javadoc)
25
     * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
26
     */
27
    @Override
28
    public void init(IWorkbench workbench) {
29
        setPreferenceStore(PreferencesUtil.getPreferenceStore());
30
    }
31

    
32
    /* (non-Javadoc)
33
     * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
34
     */
35
    @Override
36
    protected void createFieldEditors() {
37
        addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_ADVANCED_MEDIA_SECTION,
38
                "Show Advanced Media Section",
39
                getFieldEditorParent()));
40

    
41
    }
42

    
43

    
44
}
(11-11/21)