List of usage examples for org.eclipse.jface.preference StringFieldEditor StringFieldEditor
public StringFieldEditor(String name, String labelText, Composite parent)
From source file:org.iatrix.preferences.KGIatrixPreferences.java
License:Open Source License
@Override protected void createFieldEditors() { addField(new StringFieldEditor(Iatrix.CFG_AUTO_SAVE_PERIOD, "Automatische Speicherung (in Sekunden, 0 = nicht) [U]", getFieldEditorParent())); addField(new BooleanFieldEditor(Iatrix.CFG_CODE_SELECTION_AUTOCLOSE, "Auswahl Leistungen/Diagnosen: Fenster nach Auswahl schliessen [U]", getFieldEditorParent())); addField(new BooleanFieldEditor(Iatrix.CFG_USE_KONSTEXT_LOCKING, "Globales Sperren des Konsultationstext auf allen Stationen", getFieldEditorParent())); addField(new BooleanFieldEditor(Iatrix.CFG_USE_KONSTEXT_TRACE, "Aufzeichnen der Sperren (nur fr Fehlersuche)", getFieldEditorParent())); }
From source file:org.isandlatech.plugins.rest.prefs.EditorPreferencePage.java
License:Open Source License
/** * Creates the page fields.// ww w.j av a 2s . c om */ @Override public void createFieldEditors() { Composite parent = getFieldEditorParent(); /* Save actions */ pFormatOnSave = new BooleanFieldEditor(IEditorPreferenceConstants.EDITOR_SAVE_FORMAT, Messages.getString("preferences.save.format"), parent); addField(pFormatOnSave); pTrimOnSave = new BooleanFieldEditor(IEditorPreferenceConstants.EDITOR_SAVE_TRIM, Messages.getString("preferences.save.trim"), parent); addField(pTrimOnSave); /* Section markers */ pSectionMarkers = new StringFieldEditor(IEditorPreferenceConstants.EDITOR_SECTION_MARKERS, Messages.getString("preferences.save.markers.preferred"), parent); addField(pSectionMarkers); pResetMarkersOnsave = new BooleanFieldEditor(IEditorPreferenceConstants.EDITOR_SAVE_RESET_MARKERS, Messages.getString("preferences.save.markers.reset"), parent); addField(pResetMarkersOnsave); /* Tabulations */ pTabsLengthField = new IntegerFieldEditor(IEditorPreferenceConstants.EDITOR_TABS_LENGTH, Messages.getString("preferences.tab.len"), parent); pTabsLengthField.setValidRange(1, 16); addField(pTabsLengthField); pTabsToSpaceField = new BooleanFieldEditor(IEditorPreferenceConstants.EDITOR_TABS_TO_SPACES, Messages.getString("preferences.tab.tospace"), parent); addField(pTabsToSpaceField); /* Line wrap */ pLineWrapMode = new ComboFieldEditor(IEditorPreferenceConstants.EDITOR_LINEWRAP_MODE, Messages.getString("preferences.wrap.mode"), prepareLineWrapEntries(), parent); addField(pLineWrapMode); pLineWrapLength = new IntegerFieldEditor(IEditorPreferenceConstants.EDITOR_LINEWRAP_LENGTH, Messages.getString("preferences.wrap.length"), parent); addField(pLineWrapLength); /* Separator */ new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); /* Spell engine */ pSpellingServiceEnabledField = new BooleanFieldEditor(SpellingService.PREFERENCE_SPELLING_ENABLED, Messages.getString("preferences.spell.activate"), parent); addField(pSpellingServiceEnabledField); String[][] descriptorsNames = listSpellingEngines(); pSpellingServiceIdField = new ComboFieldEditor(SpellingService.PREFERENCE_SPELLING_ENGINE, Messages.getString("preferences.spell.service"), descriptorsNames, parent); addField(pSpellingServiceIdField); /* Reset colors preferences button (not a field) */ Button btn = new Button(parent, SWT.PUSH); btn.setText(Messages.getString("preferences.colors.reset")); btn.addSelectionListener(new SelectionListener() { @Override public void widgetDefaultSelected(final SelectionEvent aEvent) { // Do nothing } @Override public void widgetSelected(final SelectionEvent aEvent) { resetColors(); } }); }
From source file:org.isoe.diagraph.preferences.DiagraphPreferences.java
License:Open Source License
public void createFieldEditors() { addField(new BooleanFieldEditor(DParams.KEY_ANOTHER_FOLDER, DParams.LABEL_ANOTHER_FOLDER, getFieldEditorParent()));//from w w w. ja va 2 s . c o m addField(new BooleanFieldEditor(DParams.KEY_SAVE_OLD, DParams.LABEL_SAVE_OLD, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_DELETE_OLD_JAVA_SRC_, DParams.LABEL_DELETE_OLD_JAVA_SRC, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_LAYOUT_AT_STARTUP, DParams.LABEL_LAYOUT_AT_STARTUP, getFieldEditorParent())); addField(new StringFieldEditor(DParams.KEY_TARGET_MODEL_DIR, DParams.LABEL_TARGET_MODEL_DIR, getFieldEditorParent())); addField(new StringFieldEditor(DParams.KEY_SAVED_MODEL_DIR, DParams.LABEL_SAVED_MODEL_DIR, getFieldEditorParent())); addField(new StringFieldEditor(DParams.KEY_UNIVERSE_FOLDER, DParams.LABEL_UNIVERSE_FOLDER, getFieldEditorParent())); addField(new StringFieldEditor(DParams.KEY_UNIVERSE_NAME, DParams.LABEL_UNIVERSE_NAME, getFieldEditorParent())); addField(new StringFieldEditor(DParams.TEAM_NAMESPACE, DParams.LABEL_TEAM_NAMESPACE, getFieldEditorParent())); addField(new StringFieldEditor(DParams.KEY_INSTANCES_NAME, DParams.LABEL_INSTANCES_NAME, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_ALLOW_PATTERN_BASED_REFACTORING, DParams.LABEL_ALLOW_PATTERN_BASED_REFACTORING, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_REFACTOR_DUPLICATE_REFERENCES, DParams.LABEL_REFACTOR_DUPLICATE_REFERENCES, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_REFACTOR_POOR_REFERENCES, DParams.LABEL_REFACTOR_POOR_REFERENCES, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_REFACTOR_NAMES, DParams.LABEL_REFACTOR_NAMES, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_FILTER_TEST_PROJECTS, DParams.LABEL_FILTER_TEST_PROJECTS, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_SAVE_EMF_TRANSFO, DParams.LABEL_SAVE_EMF_TRANSFO, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_SAVE_GENERATED_ANNOTATIONS_IF_DIFFERENT_TARGET, DParams.LABEL_SAVE_GENERATED_ANNOTATIONS_IF_DIFFERENT_TARGET, getFieldEditorParent())); // addField(new // BooleanFieldEditor(DParams.KEY_SAVE_M2_,DParams.LABEL_SAVE_M2_, // getFieldEditorParent())); // addField(new BooleanFieldEditor(DParams.KEY_CHANGE_LANGUAGE_VERSION_, // DParams.LABEL_CHANGE_LANGUAGE_VERSION, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_ADD_MISSING_ANNOTATIONS, DParams.LABEL_ADD_MISSING_ANNOTATIONS, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_DIAGRAPH_AUTO_GENERATION, DParams.LABEL_DIAGRAPH_AUTO_GENERATION, getFieldEditorParent())); addField(new BooleanFieldEditor(DParams.KEY_EMFGMF_GENERATION_, DParams.LABEL_EMFGMF_GENERATION, getFieldEditorParent())); /* * addField(new IntegerFieldEditor( * DParams.KEY_DIAGRAPH_LAYOUT_LEFT_OFFSET, * DParams.LABEL_DIAGRAPH_LAYOUT_LEFT_OFFSET, getFieldEditorParent())); * addField(new IntegerFieldEditor( * DParams.KEY_DIAGRAPH_LAYOUT_WIDTH_OFFSET, * DParams.LABEL_DIAGRAPH_LAYOUT_WIDTH_OFFSET, getFieldEditorParent())); * addField(new IntegerFieldEditor( * DParams.KEY_DIAGRAPH_LAYOUT_VERTICAL_OFFSET, * DParams.LABEL_DIAGRAPH_LAYOUT_VERTICAL_OFFSET, * getFieldEditorParent())); */ }
From source file:org.jboss.jca.eclipse.preferences.IronJacamarPreferencePage.java
License:Open Source License
/** * Creates the field editors. Field editors are abstractions of * the common GUI blocks needed to manipulate various types * of preferences. Each field editor knows how to save and * restore itself.// w w w .j a v a2 s. c om */ public void createFieldEditors() { ijHomeFieldEditor = new DirectoryFieldEditor(PreferenceConstants.JCA_HOME_PATH, "IronJacamar home:", getFieldEditorParent()); addField(ijHomeFieldEditor); StringFieldEditor remoteHostFieldEditor = new StringFieldEditor(PreferenceConstants.JCA_REMOTE_HOST, pluginPrb.getString("ijhome.host"), getFieldEditorParent()); IntegerFieldEditor remotePortFieldEditor = new IntegerFieldEditor(PreferenceConstants.JCA_REMOTE_PORT, pluginPrb.getString("ijhome.port"), getFieldEditorParent()); addField(remoteHostFieldEditor); addField(remotePortFieldEditor); }
From source file:org.jboss.tools.feedhenry.ui.cordova.internal.preferences.FeedHenryPreferencesPage.java
License:Open Source License
@Override protected void createFieldEditors() { final Composite parent = getFieldEditorParent(); parent.setFont(getControl().getFont()); // FH target URL final URLFieldEditor targetUrlField = new URLFieldEditor(PREF_TARGET_URL, LABEL_TARGET_URL, parent); targetUrlField.setValidateStrategy(StringFieldEditor.VALIDATE_ON_FOCUS_LOST); targetUrlField.setPreferenceStore(getPreferenceStore()); targetUrlField.setPage(this); targetUrlField.load();/*from w w w . j a v a 2s . c o m*/ targetUrlField.setPropertyChangeListener(this); targetUrlField.getTextControl(parent).setMessage(MESSAGE_TARGET_URL); addField(targetUrlField); // API key final StringFieldEditor apikeyField = new StringFieldEditor(PREF_API_KEY, LABEL_API_KEY, parent); apikeyField.setPreferenceStore(getPreferenceStore()); apikeyField.setPage(this); apikeyField.load(); addField(apikeyField); }
From source file:org.jboss.tools.openshift.express.internal.ui.preferences.ServerPreferencePage.java
License:Open Source License
public void createFieldEditors() { addField(new StringFieldEditor(OpenShiftPreferences.DEFAULT_HOST, OpenShiftPreferences.INSTANCE.getDefaultHost(), getFieldEditorParent())); }
From source file:org.jelixeclipse.preferences.JelixPreferencePage.java
License:GNU General Public License
/** * Creates the field editors. Field editors are abstractions of the common * GUI blocks needed to manipulate various types of preferences. Each field * editor knows how to save and restore itself. */// w w w . j av a 2s .c o m @Override public void createFieldEditors() { Composite composite = getFieldEditorParent(); composite.setBounds(new Rectangle(8, 10, 1000, 42)); GridLayout lg = new GridLayout(); composite.setLayout(lg); lg.numColumns = 1; lg.verticalSpacing = 9; addField(new FileFieldEditor(PreferenceConstants.P_PATH_JELIX_PHP, Messages.JelixPreferencePage_PHPPath, composite)); addField(new FileFieldEditor(PreferenceConstants.P_PATH_JELIX_MYSQL, Messages.JelixPreferencePage_MysqlPath, composite)); addField(new StringFieldEditor(PreferenceConstants.P_NAME_JELIX_ZIP, Messages.JelixPreferencePage_JelixVersion, composite)); }
From source file:org.junithelper.plugin.page.PreferencePage.java
License:Apache License
@Override protected void createFieldEditors() { PropertiesLoader props = new PropertiesLoader(getPreferenceStore().getString(Preference.lang)); {/* w w w . ja v a 2 s. c om*/ // parent group Composite parent = getFieldEditorParent(); { GridData gd = new GridData(768); parent.setLayoutData(gd); { String en = Preference.Lang.English; String ja = Preference.Lang.Japanese; String[][] labelAndValues = new String[][] { { Preference.Lang.EnglishLabel, en }, { Preference.Lang.JapaneseLabel, ja }, }; editor_Language = new RadioGroupFieldEditor(Preference.lang, "Select your language.", 2, labelAndValues, parent); addField(editor_Language); // output file encoding addField(new StringFieldEditor(Preference.Common.outputFileEncoding, props.get(Preference.Common.outputFileEncoding), parent)); // src/main/java addField(new StringFieldEditor(Preference.Common.srcMainPath, props.get(Preference.Common.srcMainPath), parent)); // src/test/java addField(new StringFieldEditor(Preference.Common.srcTestPath, props.get(Preference.Common.srcTestPath), parent)); // line break policy { String forceCRLF = Preference.LineBreakPolicy.forceCRLF; String forceLF = Preference.LineBreakPolicy.forceLF; String forceNewFileCRLF = Preference.LineBreakPolicy.forceNewFileCRLF; String forceNewFileLF = Preference.LineBreakPolicy.forceNewFileLF; String[][] lbpLabelAndValues = new String[][] { { props.get(forceCRLF), forceCRLF }, { props.get(forceLF), forceLF }, { props.get(forceNewFileCRLF), forceNewFileCRLF }, { props.get(forceNewFileLF), forceNewFileLF } }; editor_lineBreakPolicy = new RadioGroupFieldEditor(Preference.Common.lineBreakPolicy, props.get(Preference.LineBreakPolicy.description), 5, lbpLabelAndValues, parent); addField(editor_lineBreakPolicy); } // Soft tabs { editor_useSoftTabs = new BooleanFieldEditor(Preference.Common.useSoftTabs, props.get(Preference.Common.useSoftTabs), parent); addField(editor_useSoftTabs); editor_softTabSize = new StringFieldEditor(Preference.Common.softTabSize, props.get(Preference.Common.softTabSize), parent); addField(editor_softTabSize); } // JUnit version(3 or 4) String ver3 = Preference.TestClassGen.junitVersion3; String ver4 = Preference.TestClassGen.junitVersion4; String[][] junitVersionsLabelAndValues = new String[][] { { props.get(ver3), ver3 }, { props.get(ver4), ver4 }, }; editor_JUnitVersion = new RadioGroupFieldEditor(Preference.TestClassGen.junitVersion, props.get(Preference.TestClassGen.description), 2, junitVersionsLabelAndValues, parent) { @Override protected void fireValueChanged(String p, Object o, Object n) { super.fireValueChanged(p, o, n); IPreferenceStore store = Activator.getDefault().getPreferenceStore(); store.setValue(Preference.TestClassGen.junitVersion, String.valueOf(n)); } }; addField(editor_JUnitVersion); // class to extend editor_ClassToExtend = new StringFieldEditor(Preference.TestClassGen.classToExtend, props.get(Preference.TestClassGen.classToExtend), parent); addField(editor_ClassToExtend); // common delimiter setting editor_TestMethodNameBasicDelimiter = new StringFieldEditor(Preference.TestMethodGen.delimiter, props.get(Preference.TestMethodGen.delimiter), 10, parent); addField(editor_TestMethodNameBasicDelimiter); editor_isTestMethodNameArgsRequired = new BooleanFieldEditor( Preference.TestMethodGen.enabledArgs, props.get(Preference.TestMethodGen.enabledArgs), parent); addField(editor_isTestMethodNameArgsRequired); editor_TestMethodNameArgsPrefix = new StringFieldEditor(Preference.TestMethodGen.argsPrefix, props.get(Preference.TestMethodGen.argsPrefix), parent); addField(editor_TestMethodNameArgsPrefix); editor_TestMethodNameArgsDelimiter = new StringFieldEditor( Preference.TestMethodGen.argsDelimiter, props.get(Preference.TestMethodGen.argsDelimiter), parent); addField(editor_TestMethodNameArgsDelimiter); editor_isTestMethodNameReturnTypeRequired = new BooleanFieldEditor( Preference.TestMethodGen.enabledReturn, props.get(Preference.TestMethodGen.enabledReturn), parent); addField(editor_isTestMethodNameReturnTypeRequired); editor_TestMethodNameReturnPrefix = new StringFieldEditor(Preference.TestMethodGen.returnPrefix, props.get(Preference.TestMethodGen.returnPrefix), parent); addField(editor_TestMethodNameReturnPrefix); editor_TestMethodNameRetrnDelimiter = new StringFieldEditor( Preference.TestMethodGen.returnDelimiter, props.get(Preference.TestMethodGen.returnDelimiter), parent); addField(editor_TestMethodNameRetrnDelimiter); // enable exception thrown editor_isExceptionThrownRequired = new BooleanFieldEditor( Preference.TestMethodGen.enabledException, props.get(Preference.TestMethodGen.enabledException), parent); addField(editor_isExceptionThrownRequired); editor_TestMethodNameExceptionPrefix = new StringFieldEditor( Preference.TestMethodGen.exceptionPrefix, props.get(Preference.TestMethodGen.exceptionPrefix), parent); addField(editor_TestMethodNameExceptionPrefix); editor_TestMethodNameExceptionDelimiter = new StringFieldEditor( Preference.TestMethodGen.exceptionDelimiter, props.get(Preference.TestMethodGen.exceptionDelimiter), parent); addField(editor_TestMethodNameExceptionDelimiter); // public methods editor_isPublicRequired = new BooleanFieldEditor(Preference.TestMethodGen.includePublic, props.get(Preference.TestMethodGen.includePublic), parent); addField(editor_isPublicRequired); // protected methods editor_isProtectedRequired = new BooleanFieldEditor(Preference.TestMethodGen.includeProtected, props.get(Preference.TestMethodGen.includeProtected), parent); addField(editor_isProtectedRequired); // package local methods editor_isPackageLocalRequired = new BooleanFieldEditor( Preference.TestMethodGen.includePackageLocal, props.get(Preference.TestMethodGen.includePackageLocal), parent); addField(editor_isPackageLocalRequired); // enable excluding accessors editor_isAccessorsExcluded = new BooleanFieldEditor(Preference.TestMethodGen.excludesAccessors, props.get(Preference.TestMethodGen.excludesAccessors), parent); addField(editor_isAccessorsExcluded); { String mock_none = Preference.TestMethodGen.usingMockNone; String mock_easyMock = Preference.TestMethodGen.usingMockEasyMock; String mock_jmock2 = Preference.TestMethodGen.usingMockJMock2; String mock_mockito = Preference.TestMethodGen.usingMockMockito; String mock_jmockit = Preference.TestMethodGen.usingMockJMockit; String[][] mockLabelAndValues = new String[][] { { props.get(mock_none), mock_none }, { props.get(mock_easyMock), mock_easyMock }, { props.get(mock_jmock2), mock_jmock2 }, { props.get(mock_mockito), mock_mockito }, { props.get(mock_jmockit), mock_jmockit } }; editor_MockObjectFramework = new RadioGroupFieldEditor(Preference.TestMethodGen.usingMock, props.get(Preference.TestMethodGen.descriptionForMock), 5, mockLabelAndValues, parent); addField(editor_MockObjectFramework); } { String comments_none = Preference.TestMethodGen.commentsNone; String comments_aaa = Preference.TestMethodGen.commentsArrangeActAssert; String comments_gwt = Preference.TestMethodGen.commentsGivenWhenThen; String[][] commentsLabelAndValues = new String[][] { { props.get(comments_none), comments_none }, { props.get(comments_aaa), comments_aaa }, { props.get(comments_gwt), comments_gwt } }; editor_TestingPatternComments = new RadioGroupFieldEditor( Preference.TestMethodGen.usingTestingPatternComments, props.get(Preference.TestMethodGen.descriptionForTestingPatternComments), 3, commentsLabelAndValues, parent); addField(editor_TestingPatternComments); } } } } }
From source file:org.kalypso.ui.repository.factory.FileRepositoryConfigDialog.java
License:Open Source License
/** * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite) *//* w w w.j a v a2 s.c o m*/ @Override protected Control createDialogArea(final Composite parent) { setTitle(Messages.getString("org.kalypso.ui.repository.factory.FileRepositoryConfigDialog.5")); //$NON-NLS-1$ setMessage(msg); final Composite c = (Composite) super.createDialogArea(parent); final Composite sub = new Composite(c, SWT.FILL); m_fLocation = new DirectoryFieldEditor(BASEDIR, Messages.getString("org.kalypso.ui.repository.factory.FileRepositoryConfigDialog.6"), sub); //$NON-NLS-1$ m_fIdentifier = new StringFieldEditor(IDENTIFIER, Messages.getString("org.kalypso.ui.repository.factory.FileRepositoryConfigDialog.7"), sub); //$NON-NLS-1$ m_fFilters = new StringFieldEditor(FILTER, Messages.getString("org.kalypso.ui.repository.factory.FileRepositoryConfigDialog.8"), sub); //$NON-NLS-1$ m_fLocation.setPreferenceStore(m_store); m_fLocation.loadDefault(); m_fLocation.setEmptyStringAllowed(false); m_fIdentifier.setPreferenceStore(m_store); m_fIdentifier.loadDefault(); m_fFilters.setPreferenceStore(m_store); m_fFilters.loadDefault(); final GridLayout gridLayout = new GridLayout(5, true); sub.setLayout(gridLayout); sub.setLayoutData(new GridData(GridData.FILL_BOTH)); m_fLocation.fillIntoGrid(sub, 5); m_fIdentifier.fillIntoGrid(sub, 5); m_fFilters.fillIntoGrid(sub, 3); return c; }
From source file:org.knime.knip.base.prefs.MainPreferencePage.java
License:Open Source License
/** * Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various * types of preferences. Each field editor knows how to save and restore itself. */// w w w . j a v a 2 s.c om @Override public void createFieldEditors() { final Composite parent = getFieldEditorParent(); addField(new StringFieldEditor(PreferenceConstants.P_DIM_LABELS, "The available dimension labels (separated by ','):", getFieldEditorParent())); addField(new HorizontalLineField(parent)); addField(new LabelField(parent, "The maximum image cell height \n" + "(0, if it should be determined by the first image in a column).")); addField(new IntegerFieldEditor(PreferenceConstants.P_IMAGE_CELL_HEIGHT, "Image cell height", getFieldEditorParent())); addField(new HorizontalLineField(parent)); addField(new LabelField(parent, "The maximal number of rendered images\n" + "to be cached (requires restart).")); addField(new IntegerFieldEditor(PreferenceConstants.P_BUFFEREDIMAGES_CACHE_SIZE, "Max. number of cached images", getFieldEditorParent())); addField(new HorizontalLineField(parent)); addField(new LabelField(parent, "The maximum file sizes in which the images are stored in MB.\n" + "If 0, each image is stored in a single file (which might result\n" + "in a higher overhead storing the files). Please note that if one\n" + "single image exceeds the file size, then the resulting file will be\n" + "larger than specified.\n" + "NOTE: It's highly recommended to set the file size to 0 otherwise,\n" + "for instance, sorting or writing of tables might not work so far.")); addField(new StringFieldEditor(PreferenceConstants.P_MAX_FILE_SIZE, "The maximum file size in MB", getFieldEditorParent())); // addField(new LabelField(parent, // "If true, the files will be compressed (experimental!)")); // addField(new BooleanFieldEditor( // PreferenceConstants.P_COMPRESS_FILES, // "Compress files (zip)", getFieldEditorParent())); addField(new HorizontalLineField(parent)); addField(new LabelField(parent, "A user-defined ratio determining when to create a thumbnail" + "\nfor the rendering in the KNIME image table. If the ratio of" + "\nthe number of pixels of the thumbnail to be generated to the" + "\nnumber of pixels of the actual image object is below the specified value," + "\nthe thumbnail will be generated and stored with the image data." + "\nIf 0, the thumbnail will never be stored, if 1 everytime.")); addField(new DoubleFieldEditor(PreferenceConstants.P_THUMBNAIL_IMAGE_RATIO, "The Thumbnail-Image Ratio", getFieldEditorParent())); addField(new HorizontalLineField(parent)); addField(new LabelField(parent, "The default behaviour when displaying normalizable images.")); addField(new BooleanFieldEditor(PreferenceConstants.P_ALWAYS_NORMALIZE, "Always normalize images? ", getFieldEditorParent())); }