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