1
|
/**
|
2
|
* Copyright (C) 2019 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.IntegerFieldEditor;
|
12
|
import org.eclipse.jface.preference.StringFieldEditor;
|
13
|
|
14
|
import eu.etaxonomy.taxeditor.databaseAdmin.wizard.SpacerFieldEditor;
|
15
|
import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
|
16
|
|
17
|
/**
|
18
|
* @author k.luther
|
19
|
* @since 18.01.2019
|
20
|
*
|
21
|
*/
|
22
|
public class ExternalServicesPreferences extends FieldEditorPreferencePageE4 {
|
23
|
|
24
|
/**
|
25
|
* {@inheritDoc}
|
26
|
*/
|
27
|
@Override
|
28
|
protected void createFieldEditors() {
|
29
|
addField(new StringFieldEditor(
|
30
|
PreferencesUtil.createPreferenceString(IPreferenceKeys.OPENURL_ACCESS_POINT),
|
31
|
"Mobot Open Url Service Access Point:", getFieldEditorParent()));
|
32
|
addField(new IntegerFieldEditor(
|
33
|
PreferencesUtil.createPreferenceString(IPreferenceKeys.OPENURL_IMAGE_MAX_WIDTH),
|
34
|
"Image Maximum Width:",
|
35
|
getFieldEditorParent()));
|
36
|
addField(new IntegerFieldEditor(
|
37
|
PreferencesUtil.createPreferenceString(IPreferenceKeys.OPENURL_IMAGE_MAX_HEIGHT),
|
38
|
"Image Maximum Height:",
|
39
|
getFieldEditorParent()));
|
40
|
SpacerFieldEditor spacer1 = new SpacerFieldEditor(
|
41
|
getFieldEditorParent());
|
42
|
|
43
|
addField(new StringFieldEditor(PreferencesUtil.createPreferenceString(
|
44
|
IPreferenceKeys.EDIT_MAP_SERVICE_ACCES_POINT),
|
45
|
"EDIT Map Service Access Point:", getFieldEditorParent()));
|
46
|
|
47
|
}
|
48
|
|
49
|
}
|