Project

General

Profile

« Previous | Next » 

Revision 672874ab

Added by Patrick Plitzner about 6 years ago

ref #7268 Implement own extension point for preferences

Conflicts:

eu.etaxonomy.taxeditor.workbench/fragment.e4xmi

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/TypeDesignationPreferences.java
1 1
/**
2 2
 * Copyright (C) 2007 EDIT
3
 * European Distributed Institute of Taxonomy 
3
 * European Distributed Institute of Taxonomy
4 4
 * http://www.e-taxonomy.eu
5
 * 
5
 *
6 6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
 * See LICENSE.TXT at the top of this package for the full license terms.
8 8
 */
9 9
package eu.etaxonomy.taxeditor.preference;
10 10

  
11 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;
12

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

  
16 15
/**
17 16
 * @author n.hoffmann
......
19 18
 * @created Oct 12, 2011
20 19
 * @version 1.0
21 20
 */
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
	}
21
public class TypeDesignationPreferences extends FieldEditorPreferencePageE4 {
32 22

  
33
	/* (non-Javadoc)
34
	 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
35
	 */
36 23
	@Override
37 24
	protected void createFieldEditors() {
38 25
		addField(new BooleanFieldEditor(IPreferenceKeys.ADD_TYPES_TO_ALL_NAMES,

Also available in: Unified diff