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
|
|
10
|
package eu.etaxonomy.taxeditor.preference;
|
11
|
|
12
|
import org.eclipse.jface.preference.FieldEditorPreferencePage;
|
13
|
import org.eclipse.jface.preference.IntegerFieldEditor;
|
14
|
import org.eclipse.jface.preference.StringFieldEditor;
|
15
|
import org.eclipse.ui.IWorkbench;
|
16
|
import org.eclipse.ui.IWorkbenchPreferencePage;
|
17
|
|
18
|
/**
|
19
|
* @author n.hoffmann
|
20
|
* @created Feb 4, 2011
|
21
|
* @version 1.0
|
22
|
*/
|
23
|
public class MobotOpenUrlPreferences extends FieldEditorPreferencePage implements
|
24
|
IWorkbenchPreferencePage {
|
25
|
|
26
|
|
27
|
@Override
|
28
|
protected void createFieldEditors() {
|
29
|
addField(new StringFieldEditor(
|
30
|
IPreferenceKeys.OPENURL_ACCESS_POINT,
|
31
|
"Mobot Open Url Service Access Point:", getFieldEditorParent()));
|
32
|
addField(new IntegerFieldEditor(
|
33
|
IPreferenceKeys.OPENURL_IMAGE_MAX_WIDTH,
|
34
|
"Image Maximum Width:",
|
35
|
getFieldEditorParent()));
|
36
|
addField(new IntegerFieldEditor(
|
37
|
IPreferenceKeys.OPENURL_IMAGE_MAX_HEIGHT,
|
38
|
"Image Maximum Height:",
|
39
|
getFieldEditorParent()));
|
40
|
|
41
|
}
|
42
|
|
43
|
@Override
|
44
|
public void init(IWorkbench workbench) {
|
45
|
setPreferenceStore(PreferencesUtil.getPreferenceStore());
|
46
|
}
|
47
|
}
|