Project

General

Profile

Download (1.23 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2007 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.jface.preference.FieldEditorPreferencePage;
13
import org.eclipse.ui.IWorkbench;
14
import org.eclipse.ui.IWorkbenchPreferencePage;
15

    
16
/**
17
 * @author n.hoffmann
18
 *
19
 * @created Oct 12, 2011
20
 * @version 1.0
21
 */
22
public class TypeDesignationPreferences extends FieldEditorPreferencePage
23
		implements IWorkbenchPreferencePage {
24

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

    
33
	/* (non-Javadoc)
34
	 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
35
	 */
36
	@Override
37
	protected void createFieldEditors() {
38
		addField(new BooleanFieldEditor(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES,
39
				"Add type designations to all names in a homotypical group.",
40
				getFieldEditorParent()));
41
	}
42

    
43
}
(26-26/26)