List of usage examples for org.eclipse.jface.preference StringFieldEditor StringFieldEditor
public StringFieldEditor(String name, String labelText, Composite parent)
From source file:org.eclipseplugins.impexeditor.preferences.GeneralPreferencePage.java
License:Apache 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.//from www . ja v a2s. c o m */ public void createFieldEditors() { addField(new StringFieldEditor(PreferenceConstants.P_HOST_ENDPOINT_STRING, "Host Name :", getFieldEditorParent())); addField(new StringFieldEditor(PreferenceConstants.P_HOST_USER_NAME_STRING, "User Name :", getFieldEditorParent())); addField( new StringFieldEditor(PreferenceConstants.P_HOST_PWD_STRING, "Password :", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.IMPEX_TEXT_COLOR, "Main Text Content :", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.IMPEX_COMMAND_COLOR, "Command (INSERT,INSERT_UPDATE,..) :", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.IMPEX_ATOMIC_COLOR, "Atomic (true,false,mode,..) :", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.IMPEX_HEADER_TYPE_COLOR, "Header Type (Product, Promotion,..) :", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.IMPEX_MODIFIER_COLOR, "Modifier (allownull,batchmode,..) :", getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceConstants.IMPEX_VARIABLE_COLOR, "Variable :", getFieldEditorParent())); }
From source file:org.ect.codegen.reo2ea.preferences.Reo2EaPreferencePage.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./*from ww w.j a v a2 s. co m*/ */ public void createFieldEditors() { addField(new BooleanFieldEditor(PreferenceConstants.NETWORK, "Compose entire &Network", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.TRIM, "&Trim unreachable states", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.LAYOUT, "Auto-&layout states", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.TUTOR, "Show &Intermediate results", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.DEBUG, "&Debug mode", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.PRETTY, "&Sanitise state names", getFieldEditorParent())); addField(new StringFieldEditor(PreferenceConstants.PREFIX, "State name &prefix:", getFieldEditorParent())); /* addField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, "&Directory preference:", getFieldEditorParent())); addField(new RadioGroupFieldEditor( PreferenceConstants.P_CHOICE, "An example of a multiple-choice preference", 1, new String[][] { { "&Choice 1", "choice1" }, { "C&hoice 2", "choice2" } }, getFieldEditorParent())); */ }
From source file:org.edna.kernel.preferences.LauncherPreferencePage.java
License:Open Source License
public void createFieldEditors() { addField(new DirectoryFieldEditor(LauncherPreferenceConstants.P_EDNA_HOME_PATH, "EDNA_&HOME directory preference:", getFieldEditorParent())); addField(new StringFieldEditor(LauncherPreferenceConstants.P_EDNA_SITE, "EDNA_&SITE preference:", getFieldEditorParent()));// w ww.j a v a 2 s .co m addField(new DirectoryFieldEditor(LauncherPreferenceConstants.P_WORKING_DIRECTORY_PATH, "&Working directory preference:", getFieldEditorParent())); addField(new FileFieldEditor(LauncherPreferenceConstants.P_PYTHON_PATH, "&Python path preference:", getFieldEditorParent())); }
From source file:org.emonic.base.preferences.EMonoTaskPreferencePage.java
License:Open Source License
public void createFieldEditors() { taskTags = new StringFieldEditor(DefaultPrefsSetter.CS_TODO_TAGS, "&Task tags (seperated by spaces):", getFieldEditorParent());//from w w w. ja va2 s . com addField(taskTags); taskTags.setStringValue(DefaultPrefsSetter.DEFAULT_CS_TODO_TAGS); }
From source file:org.entirej.framework.plugin.preferences.EntirejConnectionPreferencePage.java
License:Apache 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. *///from w w w . jav a2 s .c om @Override public void createFieldEditors() { if (getElement() instanceof IProject) { addField(new LabelFieldEditor(getFieldEditorParent(), "Database Settings:")); addField(new LabelFieldEditor(getFieldEditorParent(), "")); final StringFieldEditor driver = new StringFieldEditor(EntireJFrameworkPlugin.P_DBDRIVER, " &Driver:", getFieldEditorParent()); addField(driver); final StringFieldEditor url = new StringFieldEditor(EntireJFrameworkPlugin.P_URL, " &Connection URL:", getFieldEditorParent()); addField(url); final StringFieldEditor schema = new StringFieldEditor(EntireJFrameworkPlugin.P_SCHEMA, " &Schema:", getFieldEditorParent()); addField(schema); final StringFieldEditor user = new StringFieldEditor(EntireJFrameworkPlugin.P_USERNAME, " User&name:", getFieldEditorParent()); addField(user); final StringFieldEditor password = new StringFieldEditor(EntireJFrameworkPlugin.P_PASSWORD, " P&assword:", getFieldEditorParent()); password.getTextControl(getFieldEditorParent()).setEchoChar('*'); addField(password); final IProject project = (IProject) getElement(); new Label(getFieldEditorParent(), SWT.NONE); final Button test = new Button(getFieldEditorParent(), SWT.PUSH); test.setText("Validate"); addField(new LabelFieldEditor(getFieldEditorParent(), "") { @Override public void setEnabled(boolean enabled, Composite parent) { super.setEnabled(enabled, parent); test.setEnabled(enabled); } @Override public int getNumberOfControls() { return 1; } }); new Label(getFieldEditorParent(), SWT.NONE); test.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent evt) { final String driverV = driver.getStringValue(); final String urlV = url.getStringValue(); final String schemaV = schema.getStringValue(); final String userV = user.getStringValue(); final String passV = password.getStringValue(); final IRunnableWithProgress activation = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) { try { monitor.beginTask("Validating connection", 2); monitor.worked(1); try { validConnection(driverV, urlV, schemaV, userV, passV, project); final Display display = EJCorePlugin.getStandardDisplay(); display.asyncExec(new Runnable() { public void run() { // Validation error MessageDialog dialog = new MessageDialog(getShell(), // "Validation", // null, "Successfully validated!", MessageDialog.INFORMATION, // new String[] { IDialogConstants.OK_LABEL }, // 0); dialog.open(); } }); } catch (EJDevFrameworkException e) { final String error = e.getMessage(); final Display display = EJCorePlugin.getStandardDisplay(); display.asyncExec(new Runnable() { public void run() { // Validation error MessageDialog dialog = new MessageDialog(getShell(), // "Validation error", // null, error, MessageDialog.ERROR, // new String[] { IDialogConstants.OK_LABEL }, // 0); dialog.open(); } }); } monitor.worked(2); } finally { monitor.done(); } } }; ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell()); try { dialog.run(true, true, activation); } catch (InvocationTargetException e) { EJCoreLog.log(e); } catch (InterruptedException e) { EJCoreLog.log(e); } } }); } }
From source file:org.fastcode.preferences.FastCodePreferencePage.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. *//*from ww w.ja v a 2 s. c o m*/ @Override public void createFieldEditors() { // this.packagePattern = new StringFieldEditor(P_GLOBAL_PACKAGE_PATTERN, "Package Name Pattern :", getFieldEditorParent()); // addField(this.packagePattern); // // this.classNamePattern = new StringFieldEditor(P_GLOBAL_CLASS_NAME_PATTERN, "Class Name Pattern :", getFieldEditorParent()); // addField(this.classNamePattern); //this.classHeaderField = new MultiStringFieldEditor(P_GLOBAL_CLASS_HEADER, "Class Header :", getFieldEditorParent()); this.classHeaderField = new TemplateFieldEditor(P_GLOBAL_CLASS_HEADER, "Class Header :", getFieldEditorParent(), TEMPLATE, FIELDS.TEMPLATE_BODY, SWT.MULTI); addField(this.classHeaderField); //this.classBodyField = new MultiStringFieldEditor(P_GLOBAL_CLASS_BODY, "Template For Class :", getFieldEditorParent()); this.classBodyField = new TemplateFieldEditor(P_GLOBAL_CLASS_BODY, "Template For Class :", getFieldEditorParent(), TEMPLATE, FIELDS.TEMPLATE_BODY, SWT.MULTI); addField(this.classBodyField); //this.classFieldBodyField = new MultiStringFieldEditor(P_GLOBAL_CLASS_FIELD_BODY, "Field Body for Class:", getFieldEditorParent()); this.classFieldBodyField = new TemplateFieldEditor(P_GLOBAL_CLASS_FIELD_BODY, "Field Body for Class:", getFieldEditorParent(), TEMPLATE, FIELDS.TEMPLATE_BODY, SWT.MULTI); addField(this.classFieldBodyField); // this.constructorBodyField = new // MultiStringFieldEditor(P_GLOBAL_CONSTRUCTOR_BODY, // "Constructor Body for Class:", getFieldEditorParent()); // addField(this.constructorBodyField); /*this.classMethodBodyField = new MultiStringFieldEditor(P_GLOBAL_CLASS_METHOD_BODY, "Method Template for Class:", getFieldEditorParent());*/ this.classMethodBodyField = new TemplateFieldEditor(P_GLOBAL_CLASS_METHOD_BODY, "Method Template for Class:", getFieldEditorParent(), TEMPLATE, FIELDS.TEMPLATE_BODY, SWT.MULTI); addField(this.classMethodBodyField); /*this.interfaceMethodBodyField = new MultiStringFieldEditor(P_GLOBAL_INTERFACE_METHOD_BODY, "Method Template for Interface:", getFieldEditorParent());*/ this.interfaceMethodBodyField = new TemplateFieldEditor(P_GLOBAL_INTERFACE_METHOD_BODY, "Method Template for Interface:", getFieldEditorParent(), TEMPLATE, FIELDS.TEMPLATE_BODY, SWT.MULTI); addField(this.interfaceMethodBodyField); this.implSuffix = new StringFieldEditor(P_GLOBAL_IMPL_SUFFIX, "Append Suffix for Implemenation :", getFieldEditorParent()); addField(this.implSuffix); this.implSubPackage = new StringFieldEditor(P_GLOBAL_IMPL_SUB_PACKAGE, "Global Implementation Sub Package :", getFieldEditorParent()); addField(this.implSubPackage); this.useDefaultForPathField = new BooleanFieldEditor(P_GLOBAL_USE_DEFAULT_FOR_PATH, "Always use Default values for Path and disable choice for path fields:", getFieldEditorParent()); addField(this.useDefaultForPathField); this.sourcePathJavaField = new StringFieldEditor(P_GLOBAL_SOURCE_PATH_JAVA, "Default Source Path For Java :", getFieldEditorParent()); addField(this.sourcePathJavaField); this.sourcePathTestField = new StringFieldEditor(P_GLOBAL_SOURCE_PATH_TEST, "Default Source Path For Unit Test :", getFieldEditorParent()); addField(this.sourcePathTestField); this.sourcePathResourcesField = new StringFieldEditor(P_GLOBAL_SOURCE_PATH_RESOURCES, "Default Source Path For Resources :", getFieldEditorParent()); addField(this.sourcePathResourcesField); // String enable=this. // this.useDefaultForPathField.get final Boolean isDefaultChecked = getPreferenceStore().getBoolean(P_GLOBAL_USE_DEFAULT_FOR_PATH); this.sourcePathJavaField.setEnabled(isDefaultChecked, getFieldEditorParent()); this.sourcePathTestField.setEnabled(isDefaultChecked, getFieldEditorParent()); this.sourcePathResourcesField.setEnabled(isDefaultChecked, getFieldEditorParent()); /*this.getterSetterForPrivate = new BooleanFieldEditor(P_GLOBAL_GETTER_SETTER_FOR_PRIVATE, "When creating fields, always create getter setter for private/protected fields :", getFieldEditorParent()); addField(this.getterSetterForPrivate);*/ // this.equalsMethodBodyField = new // MultiStringFieldEditor(P_GLOBAL_EQUALS_METHOD_BODY, // "Method Body for Equals:", getFieldEditorParent()); // addField(this.equalsMethodBodyField); // this.hashcodeMethodBodyField = new // MultiStringFieldEditor(P_GLOBAL_HASHCODE_METHOD_BODY, // "Method Body for Hashcode:", getFieldEditorParent()); // addField(this.hashcodeMethodBodyField); // this.toStringMethodBodyField = new // MultiStringFieldEditor(P_GLOBAL_TOSTRING_METHOD_BODY, // "Method Body for To String:", getFieldEditorParent()); // addField(this.toStringMethodBodyField); this.finalModifierForMethodArgsCheckBox = new BooleanFieldEditor(P_GLOBAL_FINAL_MODIFIER_FOR_METHOD_ARGS, "Alway use final for method parameters wherever possible:", getFieldEditorParent()); addField(this.finalModifierForMethodArgsCheckBox); final FieldEditor parameterizedTypeRadio = new RadioGroupFieldEditor(P_GLOBAL_PARAMETERIZED_TYPE_CHOICE, "When Creating List/Map/Set Types", PARAMETERIZED_CHOICE_TYPES.length, PARAMETERIZED_CHOICE_TYPES, getFieldEditorParent(), true); addField(parameterizedTypeRadio); this.parameterizedNameChoiceTypesRadio = new RadioGroupFieldEditor(P_GLOBAL_PARAMETERIZED_NAME_STRATEGY, "When Creating List/Map/Set Types", PARAMETERIZED_NAME_CHOICE_TYPES.length, PARAMETERIZED_NAME_CHOICE_TYPES, getFieldEditorParent(), true); addField(this.parameterizedNameChoiceTypesRadio); this.parameterizedIgnoreExtensions = new StringFieldEditor(P_GLOBAL_PARAMETERIZED_IGNORE_EXTENSIONS, "When Creating List/Map/Set Types ignore the following extensions", getFieldEditorParent()); addField(this.parameterizedIgnoreExtensions); final FieldEditor staticImportTypesRadio = new RadioGroupFieldEditor(P_GLOBAL_STATIC_IMPORT_TYPE_CHOICE, "When Creating Import, If It Contains One or More Static Members", STATIC_IMPORT_CHOICE_TYPES.length, STATIC_IMPORT_CHOICE_TYPES, getFieldEditorParent(), true); addField(staticImportTypesRadio); final FieldEditor globalCopyMethodBodyTypesRadio = new RadioGroupFieldEditor(P_GLOBAL_COPY_METHOD_BODY, "When Copying a Method", COPY_METHOD_CHOICE_TYPES.length, COPY_METHOD_CHOICE_TYPES, getFieldEditorParent(), true); addField(globalCopyMethodBodyTypesRadio); this.showTipsCheckBox = new BooleanFieldEditor(P_SHOW_TIPS, "Show Tips :", getFieldEditorParent()); addField(this.showTipsCheckBox); /*this.convertMethodParamPatternField = new MultiStringFieldEditor(P_GLOBAL_CONVERT_METHOD_PARAM_PATTERN, "Convert Method Param Pattern", getFieldEditorParent());*/ this.convertMethodParamPatternField = new TemplateFieldEditor(P_GLOBAL_CONVERT_METHOD_PARAM_PATTERN, "Convert Method Param Pattern", getFieldEditorParent(), TEMPLATE, FIELDS.TEMPLATE_BODY, SWT.MULTI); addField(this.convertMethodParamPatternField); this.autoSaveCheck = new BooleanFieldEditor(P_AUTO_SAVE, "Automatically save files after every change :", getFieldEditorParent()); this.autoSaveCheck.setEnabled(false, getFieldEditorParent()); addField(this.autoSaveCheck); this.user = new StringFieldEditor(P_GLOBAL_USER, "User :", getFieldEditorParent()); addField(this.user); this.dateFormat = new StringFieldEditor(P_GLOBAL_DATE_FORMAT, "Date Format :", getFieldEditorParent()); addField(this.dateFormat); this.placeHolderValues = new MultiStringFieldEditor(P_GLOBAL_PLACE_HOLDER_VALUES, "Place Holders Used", true, getFieldEditorParent()); // placeHolderValues.setEnabled(false, getFieldEditorParent()); addField(this.placeHolderValues); this.staticMembersAndTypesList = new FastCodeListEditor(P_STATIC_MEMBERS_AND_TYPES, "Add New Member/Type For Static Import: ", getFieldEditorParent(), CONSIDER_CLASSES_AND_INTERFACES, null); addField(this.staticMembersAndTypesList); this.exportSettingsRadio = new RadioGroupFieldEditor(P_EXPORT_SETTINGS, "Export Settings:", EXPORT_SETTINGS_TYPES.length, EXPORT_SETTINGS_TYPES, getFieldEditorParent(), true); addField(this.exportSettingsRadio); }
From source file:org.fastcode.preferences.TemplatePreferencePage.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. *//*from w w w . ja v a2s. co m*/ @Override public void createFieldEditors() { this.embeddedFieldsView = new RadioGroupFieldEditor(P_EMBEDDED_FIELDS_VIEW, "Show Child Fields in :", FLAT_HIERARCHY.length, FLAT_HIERARCHY, getFieldEditorParent(), true); addField(this.embeddedFieldsView); this.maintainGetterSetterCheckBox = new BooleanFieldEditor(P_GLOBAL_STRICTLY_MAINTAIN_GETTER_SETTER, "Strictly maintain getter/setter ", getFieldEditorParent()); addField(this.maintainGetterSetterCheckBox); this.enableTemplateBodyInDialogBoxesCheckBox = new BooleanFieldEditor( P_GLOBAL_ENABLE_TEMPLATE_BODY_IN_DIALOG_BOXES, "Enable template body in dialog boxes", getFieldEditorParent()); addField(this.enableTemplateBodyInDialogBoxesCheckBox); this.delimiterForFileTempalteField = new StringFieldEditor(P_DELIMITER_FOR_FILE_TEMPLATE, "Delimiter for file template : \n(leave it blank for white space)", getFieldEditorParent()); addField(this.delimiterForFileTempalteField); this.placeholderNameForFileTemplate = new StringFieldEditor(P_FILE_TEMPLATE_PLACHOLDER_NAME, "Placeholder Name for file template :", getFieldEditorParent()); addField(this.placeholderNameForFileTemplate); this.includePackageList = new FastCodeListEditor(P_EMBEDDED_FIELDS_INCLUDE_PACKAGE, "Include Package :", getFieldEditorParent(), -1, null); addField(this.includePackageList); this.excludePackageList = new FastCodeListEditor(P_EMBEDDED_FIELDS_EXCLUDE_PACKAGE, "Exclude Package :", getFieldEditorParent(), -1, null); addField(this.excludePackageList); }
From source file:org.fedoraproject.eclipse.packager.git.internal.preferences.FedoraPackagerGitPreferencePage.java
License:Open Source License
@Override public void createFieldEditors() { Composite composite = getFieldEditorParent(); Group gitGroup = new Group(composite, SWT.SHADOW_ETCHED_IN); gitGroup.setText(FedoraPackagerGitText.FedoraPackagerGitPreferencePage_gitGroupName); GridDataFactory.fillDefaults().grab(true, false).span(GROUP_SPAN, 1).applyTo(gitGroup); /* Preference for git clone base url */ gitCloneURLEditor = new StringFieldEditor(GitPreferencesConstants.PREF_CLONE_BASE_URL, FedoraPackagerGitText.FedoraPackagerGitPreferencePage_cloneBaseURLLabel, gitGroup); addField(gitCloneURLEditor);/* w w w . jav a 2 s .c o m*/ updateMargins(gitGroup); }
From source file:org.fedoraproject.eclipse.packager.internal.preferences.FedoraPackagerPreferencePage.java
License:Open Source License
@Override protected void createFieldEditors() { Composite composite = getFieldEditorParent(); // General prefs Group generalGroup = new Group(composite, SWT.SHADOW_ETCHED_IN); generalGroup.setText(FedoraPackagerText.FedoraPackagerPreferencePage_generalGroupName); addField(new BooleanFieldEditor(FedoraPackagerPreferencesConstants.PREF_DEBUG_MODE, FedoraPackagerText.FedoraPackagerPreferencePage_debugSwitchLabel, generalGroup)); updateMargins(generalGroup);/*from ww w .j a v a 2 s. c om*/ Group lookasideGroup = new Group(composite, SWT.SHADOW_ETCHED_IN); lookasideGroup.setText(FedoraPackagerText.FedoraPackagerPreferencePage_lookasideGroupName); GridDataFactory.fillDefaults().grab(true, false).span(GROUP_SPAN, 1).applyTo(lookasideGroup); /* Preference for setting the lookaside urls */ lookasideUploadURLEditor = new StringFieldEditor( FedoraPackagerPreferencesConstants.PREF_LOOKASIDE_UPLOAD_URL, FedoraPackagerText.FedoraPackagerPreferencePage_lookasideUploadURLLabel, lookasideGroup); lookasideDownloadURLEditor = new StringFieldEditor( FedoraPackagerPreferencesConstants.PREF_LOOKASIDE_DOWNLOAD_URL, FedoraPackagerText.FedoraPackagerPreferencePage_lookasideDownloadURLLabel, lookasideGroup); // register change listener lookasideDownloadURLEditor.setPropertyChangeListener(this); lookasideUploadURLEditor.setPropertyChangeListener(this); // load defaults and/or set values lookasideDownloadURLEditor.load(); lookasideUploadURLEditor.load(); addField(lookasideUploadURLEditor); addField(lookasideDownloadURLEditor); updateMargins(lookasideGroup); Group kojiGroup = new Group(composite, SWT.SHADOW_ETCHED_IN); kojiGroup.setText(FedoraPackagerText.FedoraPackagerPreferencePage_buildSystemGroupName); GridDataFactory.fillDefaults().grab(true, false).span(GROUP_SPAN, 1).applyTo(kojiGroup); /* Preference for setting the koji host */ kojiWebURLEditor = new StringFieldEditor(FedoraPackagerPreferencesConstants.PREF_KOJI_WEB_URL, FedoraPackagerText.FedoraPackagerPreferencePage_kojiWebURLLabel, kojiGroup); kojiHubURLEditor = new StringFieldEditor(FedoraPackagerPreferencesConstants.PREF_KOJI_HUB_URL, FedoraPackagerText.FedoraPackagerPreferencePage_kojiHubURLLabel, kojiGroup); kojiWebURLEditor.setPropertyChangeListener(this); kojiHubURLEditor.setPropertyChangeListener(this); kojiWebURLEditor.load(); kojiHubURLEditor.load(); addField(kojiWebURLEditor); addField(kojiHubURLEditor); updateMargins(kojiGroup); }
From source file:org.fosstrak.llrp.commander.preferences.LLRPCommanderPreferencePage.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.//from w w w . j a va 2 s .c o m */ public void createFieldEditors() { addField(new StringFieldEditor(PreferenceConstants.P_PROJECT, "Eclipse Project Name:", getFieldEditorParent())); addField(new RadioGroupFieldEditor(PreferenceConstants.P_DEFAULT_EDITOR, "Default Editor/Viewer:", 1, new String[][] { { "Graphical Editor", PreferenceConstants.P_DEFAULT_EDITOR_GRAPHICAL }, { "XML Editor", PreferenceConstants.P_DEFAULT_EDITOR_XML }, { "Binary Viewer", PreferenceConstants.P_DEFAULT_EDITOR_BINARY } }, getFieldEditorParent(), true)); addField(new BooleanFieldEditor(PreferenceConstants.P_WIPE_DB_ON_STARTUP, "Wipe DB on startup", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.P_LOG_RO_ACCESS_REPORTS, "Log RO_ACCESS_REPORTS", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.P_WIPE_RO_ACCESS_REPORTS_ON_STARTUP, "Wipe RO_ACCESS_REPORTS DB on startup", getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceConstants.P_USE_INTERNAL_DB, "Use internal standalone Derby Database. NOTICE: You need to restart the Commander!!!", getFieldEditorParent())); addField(new GroupedStringFieldEditor("External Database settings", new String[][] { { "Implementor", PreferenceConstants.P_EXT_DB_IMPLEMENTOR }, { "JDBC String", PreferenceConstants.P_EXT_DB_JDBC }, { "Username", PreferenceConstants.P_EXT_DB_USERNAME }, { "Password", PreferenceConstants.P_EXT_DB_PWD } }, getFieldEditorParent())); }