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