3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.preference
;
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
;
21 * @created Feb 4, 2011
24 public class MobotOpenUrlPreferences
extends FieldEditorPreferencePage
implements
25 IWorkbenchPreferencePage
{
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()));
45 public void init(IWorkbench workbench
) {
46 setPreferenceStore(PreferencesUtil
.getPreferenceStore());