Project

General

Profile

Download (1.24 KB) Statistics
| Branch: | Tag: | Revision:
1
/// $Id$
2
/**
3
 * Copyright (C) 2007 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 n.hoffmann
19
 *
20
 * @created Oct 12, 2011
21
 * @version 1.0
22
 */
23
public class TypeDesignationPreferences extends FieldEditorPreferencePage
24
		implements IWorkbenchPreferencePage {
25

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

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

    
44
}
(27-27/27)