@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); colorComment = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_COMMENT, "Comment color:", parent); addField(colorComment); colorDoc = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_DOC, "Doc color:", parent); addField(colorDoc); colorKeyword = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_KEYWORD, "Keyword color:", parent); addField(colorKeyword); boldAttributeKeyword = new BooleanFieldEditor(GradleEditorConstants.KEY_BOLD_KEYWORD, "Bold keywords", parent); addField(boldAttributeKeyword); colorString = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_STRING, "String color:", parent); addField(colorString); colorNumber = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_NUMBER, "Number color:", parent); addField(colorNumber); colorNormal = new ColorFieldEditor(GradleEditorConstants.KEY_COLOR_NORMAL, "Normal text color:", parent); addField(colorNormal); }
/** * Creates the property editing UI components of this page. */ protected void createFieldEditors() { adjustGridLayout(); addField(new ColorFieldEditor(ColorManager.DEFAULT, TexlipsePlugin.getResourceString("preferenceColorTextLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.DEFAULT_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COMMAND, TexlipsePlugin.getResourceString("preferenceColorCommandLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.COMMAND_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.CURLY_BRACKETS, TexlipsePlugin.getResourceString("preferenceColorArgumentLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.CURLY_BRACKETS_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.SQUARE_BRACKETS, TexlipsePlugin.getResourceString("preferenceColorOptionalLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.SQUARE_BRACKETS_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.EQUATION, TexlipsePlugin.getResourceString("preferenceColorMathLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.EQUATION_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COMMENT, TexlipsePlugin.getResourceString("preferenceColorCommentLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.COMMENT_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.TEX_NUMBER, TexlipsePlugin.getResourceString("preferenceColorNumberLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.TEX_NUMBER_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.TEX_SPECIAL, TexlipsePlugin.getResourceString("preferenceColorSpeLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.TEX_SPECIAL_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.VERBATIM, TexlipsePlugin.getResourceString("preferenceColorVerbatimLabel"), getFieldEditorParent())); addField(new RadioGroupFieldEditor(ColorManager.VERBATIM_STYLE, "", 3, RADIO_STYLE_STRING, getFieldEditorParent())); }
public void createFieldEditors() { addField(new ColorFieldEditor( SimulationPreferenceConstants.STATE_FOREGROUND_HIGHLIGHTING_COLOR, "&state highlighting foreground color:", getFieldEditorParent())); addField(new ColorFieldEditor( SimulationPreferenceConstants.STATE_BACKGROUND_HIGHLIGHTING_COLOR, "&state highlighting background color:", getFieldEditorParent())); addField(new ColorFieldEditor( SimulationPreferenceConstants.VERTEX_FOREGROUND_TRANSIENT_COLOR, "&vertex transient foreground color:", getFieldEditorParent())); addField(new ColorFieldEditor( SimulationPreferenceConstants.VERTEX_BACKGROUND_TRANSIENT_COLOR, "&vertex transient background color:", getFieldEditorParent())); addField(new ColorFieldEditor( SimulationPreferenceConstants.TRANSITION_HIGHLIGHTING_COLOR, "&transition highlighting color", getFieldEditorParent())); }
@Override protected void createFieldEditors() { addField(new ComboFieldEditor(PreferenceKeys.SEEK_OUTPUT_TYPE, local.getString("seekOutType"), SEEK_OUTPUT_TYPES, getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.SEEK_GRAPH_COMPUTER_COLOR, local.getString("seekGraphCompCol"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.SEEK_GRAPH_MANY_COLOR, local.getString("seekGraphManyCol"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.SEEK_GRAPH_RATED_COLOR, local.getString("seekGraphRatCol"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.SEEK_GRAPH_UNRATED_COLOR, local.getString("seekGraphUnratCol"), getFieldEditorParent())); }
@Override protected void createFieldEditors() { addField(new BooleanFieldEditor(PreferenceKeys.RESULTS_FADE_AWAY_MODE, local.getString("resFedAw"), getFieldEditorParent())); addField(new ComboFieldEditor(PreferenceKeys.RESULTS_ANIMATION_DELAY, local.getString("resAnDel"), RESULTS_ANIMATION_DELAY_OPTIONS, getFieldEditorParent())); addField(new ComboFieldEditor(PreferenceKeys.RESULTS_WIDTH_PERCENTAGE, local.getString("resPreSz"), RESULTS_PERCENTAGE, getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.RESULTS_COLOR, local.getString("resCol"), getFieldEditorParent())); addField(new FontFieldEditor(PreferenceKeys.RESULTS_FONT, local.getString("resFnt"), getFieldEditorParent())); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); ColorFieldEditor type = new ColorFieldEditor( ColorPreferencesIds.COLOR_CLASS, "Class", parent); ColorFieldEditor classMethod = new ColorFieldEditor( ColorPreferencesIds.COLOR_CLASS_METHOD, "Class Methods", parent); ColorFieldEditor instanceMethod = new ColorFieldEditor( ColorPreferencesIds.COLOR_CLASS_METHOD, "Instance Methods", parent); ColorFieldEditor singletonMethod = new ColorFieldEditor( ColorPreferencesIds.COLOR_CLASS_METHOD, "Singleton Methods", parent); addField(type); addField(classMethod); addField(instanceMethod); addField(singletonMethod); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); ColorFieldEditor builtin = new ColorFieldEditor( ColorPreferencesIds.COLOR_BUILTIN, "Built-ins", parent); ColorFieldEditor jsclass = new ColorFieldEditor( ColorPreferencesIds.COLOR_CLASS, "Classes", parent); ColorFieldEditor jsenum = new ColorFieldEditor( ColorPreferencesIds.COLOR_ENUM, "Enums", parent); ColorFieldEditor field= new ColorFieldEditor( ColorPreferencesIds.COLOR_FIELD, "Fields", parent); ColorFieldEditor function = new ColorFieldEditor( ColorPreferencesIds.COLOR_FUNCTION, "Functions", parent); ColorFieldEditor variable = new ColorFieldEditor( ColorPreferencesIds.COLOR_VARIABLE, "Variables", parent); addField(builtin); addField(jsclass); addField(jsenum); addField(field); addField(function); addField(variable); }
public void createFieldEditors() { final Composite fieldParent = getFieldEditorParent(); addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_XML_COMMENT, "XML comment", fieldParent)); addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_PROC_INSTR, "Processing instruction", fieldParent)); addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_STRING, "String", fieldParent)); addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_DEFAULT, "Default", fieldParent)); addField(new ColorFieldEditor(PreferenceConstants.EDITOR_COLOR_TAG, "XML tag", fieldParent)); }
@Override protected void createFieldEditors() { Composite p = getFieldEditorParent(); showVerticalindentGuideFieldEditor = new BooleanFieldEditor(PydevEditorPrefs.USE_VERTICAL_INDENT_GUIDE, "Show vertical indent guide?", p); addField(showVerticalindentGuideFieldEditor); useEditorForegroundAsColorFieldEditor = new BooleanFieldEditor( PydevEditorPrefs.USE_VERTICAL_INDENT_COLOR_EDITOR_FOREGROUND, "Use the editor foreground as the color?", p); addField(useEditorForegroundAsColorFieldEditor); selectionColorFieldEditor = new ColorFieldEditor(PydevEditorPrefs.VERTICAL_INDENT_COLOR, "Vertical indent guide color.", p); addField(selectionColorFieldEditor); transparencyFieldEditor = new IntegerFieldEditor(PydevEditorPrefs.VERTICAL_INDENT_TRANSPARENCY, "Vertical indent guide transparency\n(0 = transparent, 255 = opaque).", p); transparencyFieldEditor.setValidRange(0, 255); addField(transparencyFieldEditor); updateInitialState(); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); create_ActivateOnErrorMessagesField(parent); SWTFactoryUtil.createLabel(parent, SWT.LEFT, "Console color settings:", GridDataFactory.fillDefaults().span(2, 1).create()); addField(new ColorFieldEditor(INFO_COLOR.getActiveKey(), "Information text color:", parent)); addField(new ColorFieldEditor(STDOUT_COLOR.getActiveKey(), "Program standard output text color:", parent)); addField(new ColorFieldEditor(STDERR_COLOR.getActiveKey(), "Program error output text color:", parent)); addField(new ColorFieldEditor(BACKGROUND_COLOR.getActiveKey(), "Console background color:", parent)); }
/** * Creates a new color field editor. */ private ColorFieldEditor createColorFieldEditor(String preferenceName, String label, Composite parent) { ColorFieldEditor editor = new ColorFieldEditor(preferenceName, label, parent); editor.setPage(this); editor.setPreferenceStore(getPreferenceStore()); return editor; }
/** * Creates the property editing UI components of this page. */ protected void createFieldEditors() { addField(new ColorFieldEditor(BibColorProvider.DEFAULT, TexlipsePlugin.getResourceString("preferenceBibColorTextLabel"), getFieldEditorParent())); addField(new ColorFieldEditor(BibColorProvider.TYPE, TexlipsePlugin.getResourceString("preferenceBibColorTypeLabel"), getFieldEditorParent())); addField(new ColorFieldEditor(BibColorProvider.KEYWORD, TexlipsePlugin.getResourceString("preferenceBibColorKeywordLabel"), getFieldEditorParent())); addField(new ColorFieldEditor(BibColorProvider.STRING, TexlipsePlugin.getResourceString("preferenceBibColorStringLabel"), getFieldEditorParent())); // addField(new ColorFieldEditor(BibColorProvider.MULTI_LINE_COMMENT, TexlipsePlugin.getResourceString("preferenceBibColorMLCommentLabel"), getFieldEditorParent())); addField(new ColorFieldEditor(BibColorProvider.SINGLE_LINE_COMMENT, TexlipsePlugin.getResourceString("preferenceBibColorCommentLabel"), getFieldEditorParent())); }
/** * 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. */ protected void createFieldEditors() { for (int i = 1; i <= NUM_STATUS_COLORS; i++) { addField(new ColorFieldEditor(getMainColorPrefName(i), "Color " + i, getFieldEditorParent())); addField(new ComboFieldEditor(getColorPredPrefName(i), "Predicate", ColorPredicate.PREDEFINED_MACROS, getFieldEditorParent())); addField(new BooleanFieldEditor(getLeafSideBarPrefName(i), "Show Leaf Steps in Side Bar", getFieldEditorParent())); addField(new BooleanFieldEditor(getAppliesToLeafPrefName(i), "Applies to Leaf Steps Only", getFieldEditorParent())); } }
protected void createColorEditors(Composite parent) { Composite composite = createGroupComposite(parent, "Diagram colors"); addField(new ColorFieldEditor(StatechartPreferenceConstants.PREF_REGION_BACKGROUND, "Region background color:", composite)); addField(new ColorFieldEditor(StatechartPreferenceConstants.PREF_REGION_LINE, "Region line color:", composite)); addField(new ColorFieldEditor(StatechartPreferenceConstants.PREF_STATE_BACKGROUND, "State background color:", composite)); addField(new ColorFieldEditor(StatechartPreferenceConstants.PREF_STATE_LINE, "State line color:", composite)); }
@Override protected void createFieldEditors() { addField(new ColorFieldEditor(PreferenceKeys.BOARD_ACTIVE_CLOCK_COLOR, local.getString("chessBColP1"), getFieldEditorParent())); addField(new ColorFieldEditor( PreferenceKeys.BOARD_INACTIVE_CLOCK_COLOR, local.getString("chessBColP2"), getFieldEditorParent())); ColorFieldEditor defaultMessages = new ColorFieldEditor( PreferenceKeys.BOARD_BACKGROUND_COLOR, local.getString("chessBColP3"), getFieldEditorParent()); addField(defaultMessages); ColorFieldEditor coordinatesColor = new ColorFieldEditor( PreferenceKeys.BOARD_COORDINATES_COLOR, local.getString("chessBColP4"), getFieldEditorParent()); addField(coordinatesColor); ColorFieldEditor lagLabelColor = new ColorFieldEditor( PreferenceKeys.BOARD_CONTROL_COLOR, local.getString("chessBColP5"), getFieldEditorParent()); addField(lagLabelColor); ColorFieldEditor lagOver20LabelColor = new ColorFieldEditor( PreferenceKeys.BOARD_LAG_OVER_20_SEC_COLOR, local.getString("chessBColP6"), getFieldEditorParent()); addField(lagOver20LabelColor); addField(new ColorFieldEditor( PreferenceKeys.BOARD_PIECE_JAIL_BACKGROUND_COLOR, local.getString("chessBColP7"), getFieldEditorParent())); addField(new ColorFieldEditor( PreferenceKeys.BOARD_PIECE_JAIL_LABEL_COLOR, local.getString("chessBColP8"), getFieldEditorParent())); }
@Override protected void createFieldEditors() { String[][] sliderWidthPreferences = { { local.getString("tiny"), "3" }, { local.getString("small"), "5" }, { local.getString("medium"), "8" }, { local.getString("large"), "11" }, { local.getString("extWide"), "15" } }; ComboFieldEditor setFieldEditor = new ComboFieldEditor( PreferenceKeys.APP_SASH_WIDTH, local.getString("divSashWid"), sliderWidthPreferences, getFieldEditorParent()); addField(setFieldEditor); ColorFieldEditor pingTimeColor = new ColorFieldEditor( PreferenceKeys.APP_PING_COLOR, local.getString("pingTFontCol"), getFieldEditorParent()); addField(pingTimeColor); addField(pingTimeColor); FontFieldEditor pingTimeFont = new FontFieldEditor( PreferenceKeys.APP_PING_FONT, local.getString("pingTFont"), getFieldEditorParent()); addField(pingTimeFont); ColorFieldEditor statusBarFontColor = new ColorFieldEditor( PreferenceKeys.APP_STATUS_BAR_COLOR, local.getString("statBarFontCol"), getFieldEditorParent()); addField(statusBarFontColor); FontFieldEditor statusBarFont = new FontFieldEditor( PreferenceKeys.APP_STATUS_BAR_FONT, local.getString("statBarFont"), getFieldEditorParent()); addField(statusBarFont); addField(new BooleanFieldEditor( PreferenceKeys.APP_SHOW_STATUS_BAR, local.getString("showWinStar"), getFieldEditorParent())); }
@Override protected void createFieldEditors() { addField(new BooleanFieldEditor( PreferenceKeys.ARROW_SHOW_ON_OBS_AND_OPP_MOVES, local.getString("chessBArP1"), getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceKeys.ARROW_SHOW_ON_MY_MOVES, local.getString("chessBArP2"), getFieldEditorParent())); addField(new BooleanFieldEditor( PreferenceKeys.ARROW_SHOW_ON_MOVE_LIST_MOVES, local.getString("chessBArP3"), getFieldEditorParent())); addField(new BooleanFieldEditor( PreferenceKeys.ARROW_SHOW_ON_MY_PREMOVES, local.getString("chessBArP4"), getFieldEditorParent())); addField(new BooleanFieldEditor(PreferenceKeys.ARROW_FADE_AWAY_MODE, local.getString("chessBArP5"), getFieldEditorParent())); addField(new ComboFieldEditor(PreferenceKeys.ARROW_ANIMATION_DELAY, local.getString("chessBArP6"), ARROW_ANIMATION_DELAY_OPTIONS, getFieldEditorParent())); addField(new ComboFieldEditor(PreferenceKeys.ARROW_WIDTH_PERCENTAGE, local.getString("chessBArP7"), ARROW_BORDER_PERCENTAGE_OPTIONS, getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.ARROW_MY_COLOR, local.getString("chessBArP8"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.ARROW_PREMOVE_COLOR, local.getString("chessBArP9"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.ARROW_OBS_OPP_COLOR, local.getString("chessBArP10"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.ARROW_OBS_COLOR, local.getString("chessBArP11"), getFieldEditorParent())); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); ColorFieldEditor artifact = new ColorFieldEditor( ColorPreferencesIds.COLOR_ARTIFACT, "Artifacts", parent); ColorFieldEditor property = new ColorFieldEditor( ColorPreferencesIds.COLOR_PROPERTY, "Properties", parent); addField(artifact); addField(property); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); ColorFieldEditor background = new ColorFieldEditor( ColorPreferencesIds.COLOR_BACKGROUND, "Background", parent); ColorFieldEditor foreground = new ColorFieldEditor( ColorPreferencesIds.COLOR_FOREGROUND, "Text color", parent); addField(background); addField(foreground); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); ColorFieldEditor artifact = new ColorFieldEditor( ColorPreferencesIds.COLOR_DIRECTORY, "Directories", parent); ColorFieldEditor property = new ColorFieldEditor( ColorPreferencesIds.COLOR_FILE, "Files", parent); addField(artifact); addField(property); }
@Override protected void createFieldEditors() { Composite parent = getFieldEditorParent(); ColorFieldEditor type = new ColorFieldEditor( ColorPreferencesIds.COLOR_TYPE, "Types", parent); ColorFieldEditor method = new ColorFieldEditor( ColorPreferencesIds.COLOR_METHOD, "Methods", parent); ColorFieldEditor field = new ColorFieldEditor( ColorPreferencesIds.COLOR_FIELD, "Fields", parent); ColorFieldEditor interfac = new ColorFieldEditor( ColorPreferencesIds.COLOR_INTERFACE, "Interfaces", parent); ColorFieldEditor pkge = new ColorFieldEditor( ColorPreferencesIds.COLOR_PACKAGE, "Packages", parent); ColorFieldEditor source = new ColorFieldEditor( ColorPreferencesIds.COLOR_SOURCE, "Source files", parent); ColorFieldEditor directory = new ColorFieldEditor( ColorPreferencesIds.COLOR_DIRECTORY, "Directories", parent); addField(type); addField(method); addField(field); addField(interfac); addField(pkge); addField(source); addField(directory); }
/** * 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. */ public void createFieldEditors() { addField(new ColorFieldEditor(ColorManager.COLOR_FOREACH_DIRECTIVE, UIUtil.getResourceLabel("ForeachDirective"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_IF_DIRECTIVE, UIUtil.getResourceLabel("IfDirective"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_MACRO_DIRECTIVE, UIUtil.getResourceLabel("MacroDirective"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_SET_DIRECTIVE, UIUtil.getResourceLabel("SetDirective"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_VARIABLE, UIUtil.getResourceLabel("VelocityVariable"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_COMMENT, UIUtil.getResourceLabel("VelocityComment"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_PROC_INSTR, UIUtil.getResourceLabel("XMLInstruction"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_STRING, UIUtil.getResourceLabel("XMLString"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_TAG, UIUtil.getResourceLabel("XMLTag"), getFieldEditorParent())); addField(new ColorFieldEditor(ColorManager.COLOR_XML_COMMENT, UIUtil.getResourceLabel("XMLComment"), getFieldEditorParent())); { IntegerFieldEditor integerFieldEditor = new IntegerFieldEditor(AUTO_COMPLETE_DEPLAY, "Auto Completion Delay(ms):", getFieldEditorParent()); integerFieldEditor.setStringValue("80"); integerFieldEditor.setValidRange(0, 9999); addField(integerFieldEditor); } { StringFieldEditor stringFieldEditor = new StringFieldEditor(MACRO_TEMPLATE_PATH, "Macro Template Path:", 40, StringFieldEditor.VALIDATE_ON_KEY_STROKE, getFieldEditorParent()); stringFieldEditor.setEmptyStringAllowed(false); stringFieldEditor.setStringValue("/src/main/webapp/home/templates/"); addField(stringFieldEditor); } }
/** * */ public void createFieldEditors() { addField(new ComboFieldEditor( P_ELEMENT_DESIGN_BORDER_STYLE, Messages.DesignerPreferencePage_element_design_border_style, new String[][] { { Messages.DesignerPreferencePage_corners, "corners" }, { Messages.common_rectangle, "rectangle" } }, getFieldEditorParent())); //$NON-NLS-1$ //$NON-NLS-2$ addField(new ColorFieldEditor(P_ELEMENT_DESIGN_BORDER_COLOR, Messages.DesignerPreferencePage_elementbordercolor, getFieldEditorParent())); addField(new ComboFieldEditor(P_PAGE_DESIGN_BORDER_STYLE, Messages.DesignerPreferencePage_page_border_style, new String[][] { { Messages.DesignerPreferencePage_fancy_shadow, DEFAULT_BORDERSTYLE }, { Messages.DesignerPreferencePage_simple_shadow, "rectangle" } }, getFieldEditorParent())); //$NON-NLS-1$ //$NON-NLS-2$ addField(new ComboFieldEditor(P_PAGE_DEFAULT_UNITS, Messages.DesignerPreferencePage_unit, Unit.getUnits2(), getFieldEditorParent())); addField(new BooleanFieldEditor(P_SHOW_REPORT_BAND_NAMES, Messages.DesignerPreferencePage_show_band_names, getFieldEditorParent())); addField(new ColorFieldEditor(P_CONTAINER_MARGIN_COLOR, Messages.DesignerPreferencePage_common_bandmargincolor, getFieldEditorParent())); addField(new ColorFieldEditor(P_PAGE_MARGIN_COLOR, Messages.DesignerPreferencePage_pageprintmargincolor, getFieldEditorParent())); addField(new ColorFieldEditor(P_PAGE_BACKGROUND, Messages.DesignerPreferencePage_pagebackground, getFieldEditorParent())); addField(new FontFieldEditor(P_INTERNAL_EDITORS_FONT, Messages.DesignerPreferencePage_InternalEditorsFont, getFieldEditorParent())); addField(new ComboFieldEditor(BEHAVIOR_ON_FIELD_DROP, Messages.DesignerPreferencePage_field_behavior, new String[][] { { Messages.DesignerPreferencePage_field_behavior_label, BEHAVIOR_CREATE_LABEL }, { Messages.DesignerPreferencePage_field_behavior_nothing, BEHAVIOR_DO_NOTHING }, { Messages.DesignerPreferencePage_field_behavior_ask, BEHAVIOR_ASK_EVERYTIME } }, getFieldEditorParent())); addField(new BooleanFieldEditor(P_USE_FIELD_DESCRIPTION, Messages.DesignerPreferencePage_UseDescriptionForLabelText, getFieldEditorParent())); addField(new BooleanFieldEditor(P_SAVE_ON_PREVIEW, Messages.DesignerPreferencePage_savereportonpreview, getFieldEditorParent())); addField(new BooleanFieldEditor(P_CENTER_SELECTION, Messages.DesignerPreferencePage_centerEditorOption, getFieldEditorParent())); addField(new BooleanFieldEditor(P_RESIZE_CONTAINER, Messages.DesignerPreferencePage_autoresizeBand, getFieldEditorParent())); }
/** * */ public void createFieldEditors() { Composite fieldEditorParent = getFieldEditorParent(); Group group = new Group(fieldEditorParent, SWT.NONE); group.setText(Messages.RulersGridPreferencePage_ruler_options); group.setLayout(new GridLayout(2, false)); GridData gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.grabExcessHorizontalSpace = true; gridData.horizontalSpan = 2; group.setLayoutData(gridData); addField(new BooleanFieldEditor(P_PAGE_RULERGRID_SHOWRULER, Messages.RulersGridPreferencePage_show_rulers, group)); addField(new BooleanFieldEditor(P_PAGE_RULERGRID_SNAPTOGUIDES, Messages.common_snap_to_guides, group)); group = new Group(fieldEditorParent, SWT.NONE); group.setText(Messages.RulersGridPreferencePage_grid_options); group.setLayout(new GridLayout(2, false)); gridData = new GridData(GridData.FILL_HORIZONTAL); gridData.grabExcessHorizontalSpace = true; gridData.horizontalSpan = 2; group.setLayoutData(gridData); addField(new BooleanFieldEditor(P_PAGE_RULERGRID_SHOWGRID, Messages.RulersGridPreferencePage_show_grid, group)); addField(new BooleanFieldEditor(P_PAGE_RULERGRID_SNAPTOGRID, Messages.common_snap_to_grid, group)); addField(new BooleanFieldEditor(P_PAGE_RULERGRID_SNAPTOGEOMETRY, Messages.common_snap_to_geometry, group)); IntegerFieldEditor spaceX = new IntegerFieldEditor(P_PAGE_RULERGRID_GRIDSPACEX, Messages.RulersGridPreferencePage_grid_spacing_x, group); spaceX.setValidRange(1, 500); addField(spaceX); IntegerFieldEditor spaceY = new IntegerFieldEditor(P_PAGE_RULERGRID_GRIDSPACEY, Messages.RulersGridPreferencePage_grid_spacing_y, group); spaceY.setValidRange(1, 500); addField(spaceY); addField(new ColorFieldEditor(P_PAGE_GRID_COLOR, Messages.RulersGridPreferencePage_common_gridcolor, group)); }
/** * 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. */ @Override public void createFieldEditors() { Composite parent = getFieldEditorParent(); addField(new LabelFieldEditor ("General", parent, true)); addField(new BooleanFieldEditor(PrefCst.P_STARTUP_CHECK, "Check resources derived state at startup", parent)); addField(new BooleanFieldEditor(PrefCst.P_ENABLE_MARKER, "Add markers in .derived file (per-rule info or warn)", parent)); addField(new LabelFieldEditor ("Trace", parent, true)); addField(new BooleanFieldEditor(PrefCst.P_OUTPUT_LOG, "Output in the .log file (in workspace/.metadata/)", parent)); addField(new BooleanFieldEditor(PrefCst.P_OUTPUT_STD, "Output in the standard output streams (console)", parent)); addField(new BooleanFieldEditor(PrefCst.P_TRACE_WARN, "Trace warnings (recommended)", parent)); addField(new BooleanFieldEditor(PrefCst.P_TRACE_INFO, "Trace info", parent)); addField(new BooleanFieldEditor(PrefCst.P_TRACE_DEBUG, "Trace debug", parent)); addField(new LabelFieldEditor ("Decoration - Label", parent, true)); addField(new LabelFieldEditor ("NOTE: decorations may be disabled at workspace level,", parent)); addField(new LabelFieldEditor ("See General > Appearance > Label Decorations", parent)); addField(new BooleanFieldEditor(PrefCst.P_DECO_LABEL_TEXT, "Affect the label of derived resources", parent)); addField(new StringFieldEditor (PrefCst.P_DECO_PREFIX, "Label prefix", parent)); addField(new StringFieldEditor (PrefCst.P_DECO_SUFFIX, "Label suffix", parent)); addField(new BooleanFieldEditor(PrefCst.P_DECO_LABEL_FCOLOR, "Override foreground color", parent)); addField(new ColorFieldEditor (PrefCst.P_DECO_FOREGROUND, "Label foreground", parent)); addField(new BooleanFieldEditor(PrefCst.P_DECO_LABEL_BCOLOR, "Override background color", parent)); addField(new ColorFieldEditor (PrefCst.P_DECO_BACKGROUND, "Label background", parent)); addField(new BooleanFieldEditor(PrefCst.P_ENABLE_DECO_FONT, "Override font", parent)); addField(new FontFieldEditor (PrefCst.P_DECO_LABEL_FONT, "Derived resources font", parent)); addField(new LabelFieldEditor("Decoration - Icon", parent, true)); addField(new ColorFieldEditor (PrefCst.P_ICON_COLOR, "Icon color (hue only)", parent)); addField(new BooleanFieldEditor(PrefCst.P_ENABLE_CONF_ICON, "Replace icon of .derived conf file", parent)); addField(new BooleanFieldEditor(PrefCst.P_ENABLE_DECO_ICON, "Show an icon on derived resources", parent)); String[][] comboLocation = { {"top left", "TOP_LEFT"}, {"top right", "TOP_RIGHT"}, {"bottom left", "BOTTOM_LEFT"}, {"bottom right","BOTTOM_RIGHT"}, }; addField(new RadioGroupFieldEditor( PrefCst.P_DECO_ICON_LOC, "Decoration icon location", 2,comboLocation, parent, true)); }
@Override protected void createFieldEditors() { addField(new ComboFieldEditor("prefCombo", "A combo field", new String[][]{{"display1", "value1"},{"display2", "value2"}}, getFieldEditorParent())); addField(new ColorFieldEditor("prefColor", "Color for table items : ", getFieldEditorParent())); addField(new BooleanFieldEditor("prefBoolean", "A boolean : ", getFieldEditorParent())); addField(new StringFieldEditor("prefString", "A string : ", getFieldEditorParent())); }
@Override protected void createFieldEditors() { Composite p = getFieldEditorParent(); BooleanFieldEditor useMinimap = new BooleanFieldEditor(USE_MINIMAP, "Show minimap? (applied on editor restart)", p); addField(useMinimap); BooleanFieldEditor showScrollbar = new BooleanFieldEditor(SHOW_VERTICAL_SCROLLBAR, "Show vertical scrollbar? (applied on editor restart)", p); addField(showScrollbar); BooleanFieldEditor showHorizontalScrollbar = new BooleanFieldEditor(SHOW_HORIZONTAL_SCROLLBAR, "Show horizontal scrollbar? (applied on editor restart)", p); addField(showHorizontalScrollbar); BooleanFieldEditor showContents = new BooleanFieldEditor(SHOW_MINIMAP_CONTENTS, "Show overview items in overview ruler? (applied on text change)", p); addField(showContents); IntegerFieldEditor minimapWidth = new IntegerFieldEditor(MINIMAP_WIDTH, "Minimap Width: (applied on editor resize)", p); addField(minimapWidth); ColorFieldEditor selectionColor = new ColorFieldEditor(MINIMAP_SELECTION_COLOR, "Selection color", p); addField(selectionColor); }
@Override protected void createFieldEditors(){ addField(new ColorFieldEditor(COLBACKGROUND, Messages.Preferences_BackgroundColor, getFieldEditorParent())); addField(new ColorFieldEditor(COLFOREGROUND, Messages.Preferences_ForegroundColor, getFieldEditorParent())); }
private void createColorChooser(Composite composite) { colorFieldEditor = new ColorFieldEditor(ILogViewerConstants.PREF_CURSORLINE_COLOR,LogViewerPlugin.getResourceString("preferences.contenteditor.cursorline.color.chooser.text"),composite); //$NON-NLS-1$ colorFieldEditor.setPreferenceStore(doGetPreferenceStore()); colorFieldEditor.setPage(this); colorFieldEditor.load(); }
@Override protected void createFieldEditors() { ComboFieldEditor consoleChars = new ComboFieldEditor( PreferenceKeys.CHAT_MAX_CONSOLE_CHARS, local.getString("chatConsP1"), CONSOLE_CHARS, getFieldEditorParent()); addField(consoleChars); ColorFieldEditor inputTextBackground = new ColorFieldEditor( PreferenceKeys.CHAT_INPUT_BACKGROUND_COLOR, local.getString("chatConsP2"), getFieldEditorParent()); addField(inputTextBackground); ColorFieldEditor consoleBackground = new ColorFieldEditor( PreferenceKeys.CHAT_CONSOLE_BACKGROUND_COLOR, local.getString("chatConsP3"), getFieldEditorParent()); addField(consoleBackground); FontFieldEditor inputFont = new FontFieldEditor( PreferenceKeys.CHAT_INPUT_FONT, local.getString("chatConsP4"), getFieldEditorParent()); addField(inputFont); ColorFieldEditor outputTextBackground = new ColorFieldEditor( PreferenceKeys.CHAT_OUTPUT_BACKGROUND_COLOR, local.getString("chatConsP5"), getFieldEditorParent()); addField(outputTextBackground); ColorFieldEditor promptColor = new ColorFieldEditor( PreferenceKeys.CHAT_PROMPT_COLOR, local.getString("chatConsP6"), getFieldEditorParent()); addField(promptColor); ColorFieldEditor outputTextForeground = new ColorFieldEditor( PreferenceKeys.CHAT_OUTPUT_TEXT_COLOR, local.getString("chatConsP7"), getFieldEditorParent()); addField(outputTextForeground); addField(new FontFieldEditor( PreferenceKeys.CHAT_OUTPUT_FONT, local.getString("chatConsP8"), getFieldEditorParent())); ColorFieldEditor linkTextColor = new ColorFieldEditor( PreferenceKeys.CHAT_LINK_UNDERLINE_COLOR, local.getString("chatConsP9"), getFieldEditorParent()); addField(linkTextColor); ColorFieldEditor quoteUnderlineColor = new ColorFieldEditor( PreferenceKeys.CHAT_QUOTE_UNDERLINE_COLOR, local.getString("chatConsP10"), getFieldEditorParent()); addField(quoteUnderlineColor); Label warningLabel = new Label(getFieldEditorParent(), SWT.NONE); warningLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 3, 1)); warningLabel .setText(WordUtils .wrap(local.getString("chatConsP11"), 70)); }
@Override protected void createFieldEditors() { addField(new BooleanFieldEditor( PreferenceKeys.HIGHLIGHT_SHOW_ON_OBS_AND_OPP_MOVES, local.getString("chessBHighP1"), getFieldEditorParent())); addField(new BooleanFieldEditor( PreferenceKeys.HIGHLIGHT_SHOW_ON_MOVE_LIST_MOVES, local.getString("chessBHighP2"), getFieldEditorParent())); addField(new BooleanFieldEditor( PreferenceKeys.HIGHLIGHT_SHOW_ON_MY_PREMOVES, local.getString("chessBHighP3"), getFieldEditorParent())); addField(new BooleanFieldEditor( PreferenceKeys.HIGHLIGHT_SHOW_ON_MY_MOVES, local.getString("chessBHighP4"), getFieldEditorParent())); addField(new BooleanFieldEditor( PreferenceKeys.HIGHLIGHT_FADE_AWAY_MODE, local.getString("chessBHighP5"), getFieldEditorParent())); addField(new ComboFieldEditor(PreferenceKeys.HIGHLIGHT_ANIMATION_DELAY, local.getString("chessBHighP6"), HIGHLIGHT_ANIMATION_DELAY_OPTIONS, getFieldEditorParent())); addField(new ComboFieldEditor( PreferenceKeys.HIGHLIGHT_WIDTH_PERCENTAGE, local.getString("chessBHighP7"), HIGHLIGHT_BORDER_PERCENTAGE_OPTIONS, getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.HIGHLIGHT_MY_COLOR, local.getString("chessBHighP8"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.HIGHLIGHT_PREMOVE_COLOR, local.getString("chessBHighP9"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.HIGHLIGHT_OBS_OPP_COLOR, local.getString("chessBHighP10"), getFieldEditorParent())); addField(new ColorFieldEditor(PreferenceKeys.HIGHLIGHT_OBS_COLOR, local.getString("chessBHighP11"), getFieldEditorParent())); }
private void createUI10Colors(final Composite parent) { final Group colorGroup = new Group(parent, SWT.NONE); GridDataFactory.fillDefaults().grab(true, false).applyTo(colorGroup); GridLayoutFactory.fillDefaults()// .margins(5, 5) .spacing(30, LayoutConstants.getSpacing().y) .numColumns(2) .applyTo(colorGroup); colorGroup.setText(Messages.pref_view_layout_label_color_group); { final Composite containerDefaultView = new Composite(colorGroup, SWT.NONE); { // color: tag category addField(new ColorFieldEditor( ITourbookPreferences.VIEW_LAYOUT_COLOR_CATEGORY, Messages.pref_view_layout_label_category, containerDefaultView)); // color: tag addField(new ColorFieldEditor(ITourbookPreferences.VIEW_LAYOUT_COLOR_TITLE, // Messages.pref_view_layout_label_title, containerDefaultView)); // color: sub tag (year) addField(new ColorFieldEditor( ITourbookPreferences.VIEW_LAYOUT_COLOR_SUB, Messages.pref_view_layout_label_sub, containerDefaultView)); // color: sub sub tag (month) addField(new ColorFieldEditor( ITourbookPreferences.VIEW_LAYOUT_COLOR_SUB_SUB, Messages.pref_view_layout_label_sub_sub, containerDefaultView)); } final Composite containerSegmenter = new Composite(colorGroup, SWT.NONE); GridDataFactory.fillDefaults().align(SWT.BEGINNING, SWT.BEGINNING).applyTo(containerSegmenter); GridLayoutFactory.fillDefaults().numColumns(2).applyTo(containerSegmenter); { // show lines final BooleanFieldEditor2 editorLines = new BooleanFieldEditor2( ITourbookPreferences.VIEW_LAYOUT_DISPLAY_LINES, Messages.pref_view_layout_display_lines, containerSegmenter); addField(editorLines); final GridLayout gl = (GridLayout) containerSegmenter.getLayout(); gl.numColumns = 2; final Button editorLinesControl = editorLines.getChangeControl(containerSegmenter); GridDataFactory.fillDefaults().span(2, 1).indent(0, 10).applyTo(editorLinesControl); editorLinesControl.setToolTipText(Messages.pref_view_layout_display_lines_Tooltip); } } }
@Override protected Control createContents(Composite parent) { Composite container = new Composite(parent, SWT.NONE); GridLayout gridLayout = new GridLayout(2, false); container.setLayout(gridLayout); //Initialize and populate list final List list = new List(container, SWT.NONE); list.setLayoutData(new GridData(SWT.FILL)); populateList(list); list.setSelection(0); list.setSize(10, 20); list.addSelectionListener(new SomeSelectionListener(list)); Composite selectorContainer = new Composite(container, SWT.NONE); selectorContainer.setLayout(new GridLayout(1, false)); String selection = options[0]; //Add color editor Composite colorContainer = new Composite(selectorContainer, SWT.NONE); color = new ColorFieldEditor(RustConstants.SYNTAXCOLOR_COLOR + selection, "Color", colorContainer); //Create and add style group Group styleContainer = new Group(selectorContainer, SWT.NONE); styleContainer.setText("Style"); GridLayout gridLayout2 = new GridLayout(1, false); styleContainer.setLayout(gridLayout2); Composite styleBoldContainer = new Composite(styleContainer, SWT.NONE); Composite styleItalicContainer = new Composite(styleContainer, SWT.NONE); Composite styleUnderlineContainer = new Composite(styleContainer, SWT.NONE); Composite styleStrikethroughContainer = new Composite(styleContainer, SWT.NONE); styleBold = new BooleanFieldEditor(RustConstants.SYNTAXCOLOR_BOLD + selection, "Bold", styleBoldContainer); styleItalic = new BooleanFieldEditor(RustConstants.SYNTAXCOLOR_ITALIC + selection, "Italic", styleItalicContainer); styleUnderline = new BooleanFieldEditor(RustConstants.SYNTAXCOLOR_UNDERLINE + selection, "Underline", styleUnderlineContainer); styleStrikethrough = new BooleanFieldEditor(RustConstants.SYNTAXCOLOR_STRIKETHROUGH + selection, "Strike through", styleStrikethroughContainer); //Link editors with the default preferenceStore color.setPreferenceStore(RustCorePlugin.getDefaultPreferenceStore()); styleBold.setPreferenceStore(RustCorePlugin.getDefaultPreferenceStore()); styleItalic.setPreferenceStore(RustCorePlugin.getDefaultPreferenceStore()); styleUnderline.setPreferenceStore(RustCorePlugin.getDefaultPreferenceStore()); styleStrikethrough.setPreferenceStore(RustCorePlugin.getDefaultPreferenceStore()); //Load values for keyword updateEditors(selection); return container; }
@Override protected void createFieldEditors() { Boolean overrideTabSetting = getPreferenceStore().getBoolean(JsonPreferenceStore.OVERRIDE_TAB_SETTING); usePlatformTabSetting = new BooleanFieldEditor( JsonPreferenceStore.OVERRIDE_TAB_SETTING, "Override Workbench Tab Setting", getFieldEditorParent()); addField(usePlatformTabSetting); usePlatformTabSetting.setPropertyChangeListener(this); spacesForTab = new BooleanFieldEditor( JsonPreferenceStore.SPACES_FOR_TABS, "Insert Spaces For Tabs", getFieldEditorParent()); spacesForTab.setEnabled(overrideTabSetting, getFieldEditorParent()); addField(spacesForTab); indentSpaces = new IntegerFieldEditor( JsonPreferenceStore.NUM_SPACES, "&Number of spaces to indent:", getFieldEditorParent(), 1); indentSpaces.setValidRange(0, 10); indentSpaces.setEnabled(overrideTabSetting, getFieldEditorParent()); addField(indentSpaces); BooleanFieldEditor autoFormatOnSave = new BooleanFieldEditor( JsonPreferenceStore.AUTO_FORMAT_ON_SAVE, "Auto Format On Save", getFieldEditorParent()); addField(autoFormatOnSave); ColorFieldEditor stringColor = new ColorFieldEditor(JsonPreferenceStore.STRING_COLOR, "&Key Attribute Color", getFieldEditorParent()); addField(stringColor); ColorFieldEditor valueColor = new ColorFieldEditor(JsonPreferenceStore.VALUE_COLOR, "&Value Attribute Color", getFieldEditorParent()); addField(valueColor); ColorFieldEditor nullColor = new ColorFieldEditor(JsonPreferenceStore.NULL_COLOR, "&Null Value Color", getFieldEditorParent()); addField(nullColor); ColorFieldEditor defaultColor = new ColorFieldEditor(JsonPreferenceStore.DEFAULT_COLOR, "&Default Color", getFieldEditorParent()); addField(defaultColor); }
@Override protected void createFieldEditors() { Composite p = getFieldEditorParent(); addField(new ColorFieldEditor(PydevConsoleConstants.CONSOLE_OUTPUT_COLOR, "Stdout color", p)); addField(new ColorFieldEditor(PydevConsoleConstants.CONSOLE_ERROR_COLOR, "Stderr color", p)); addField(new ColorFieldEditor(PydevConsoleConstants.CONSOLE_INPUT_COLOR, "Stdin color", p)); addField(new ColorFieldEditor(PydevConsoleConstants.CONSOLE_PROMPT_COLOR, "Prompt color", p)); addField(new ColorFieldEditor(PydevConsoleConstants.CONSOLE_BACKGROUND_COLOR, "Background color", p)); addField(new ColorFieldEditor(PydevConsoleConstants.DEBUG_CONSOLE_BACKGROUND_COLOR, "Debug console background color", p)); addField(new StringFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_VM_ARGS, "Vm Args for jython\n(used only on external\nprocess option):", p)); addField(new StringFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_ENCODING, "Encoding for interactive console:", p)); addField(new IntegerFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_MAXIMUM_CONNECTION_ATTEMPTS, "Maximum connection attempts\nfor initial communication:", p)); addField(new BooleanFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_FOCUS_ON_CONSOLE_START, "Focus console when it's started?", BooleanFieldEditor.SEPARATE_LABEL, p)); addField(new BooleanFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_TAB_COMPLETION, "Enable tab completion in interactive console?", BooleanFieldEditor.SEPARATE_LABEL, p)); addField(new IntegerFieldEditor( ScriptConsoleUIConstants.INTERACTIVE_CONSOLE_PERSISTENT_HISTORY_MAXIMUM_ENTRIES, "Maximum number of lines to\nstore in global history\n(0 for unlimited):", p) { // We are trying to set a preference that is in a different store, but logically lives within this UI @Override public IPreferenceStore getPreferenceStore() { return InteractiveConsolePlugin.getDefault().getPreferenceStore(); } }); addField(new BooleanFieldEditor( PydevConsoleConstants.INTERACTIVE_CONSOLE_SEND_INITIAL_COMMAND_WHEN_CREATED_FROM_EDITOR, "When creating console send\ncurrent selection/editor\ncontents for execution?", BooleanFieldEditor.SEPARATE_LABEL, p)); addField(new BooleanFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_FOCUS_ON_SEND_COMMAND, "Focus console when an evaluate\ncommand is sent from the editor?", BooleanFieldEditor.SEPARATE_LABEL, p)); addField(new BooleanFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_CONNECT_DEBUG_SESSION, "Connect console to a Debug Session?", BooleanFieldEditor.SEPARATE_LABEL, p)); addField(new ComboFieldEditor(PydevConsoleConstants.INTERACTIVE_CONSOLE_ENABLE_GUI_ON_STARTUP, "Enable GUI event loop integration?", PydevConsoleConstants.ENTRIES_VALUES_INTERACTIVE_CONSOLE_ENABLE_GUI_ON_STARTUP, p)); }
@Override public void createFieldEditors() { addField(new BooleanFieldEditor(P_SYNC_CLASS_DIAGRAMS_WITH_UML, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_synchClassDiagramsWithUML"), getFieldEditorParent())); addField(new BooleanFieldEditor(P_RESTRICT_NIEM_SUBSET_CONTENT, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_restrictNiemSubsetContent"), getFieldEditorParent())); // TODO: remove this in Luna addField(new BooleanFieldEditor(P_DISPLAY_MESSAGE_FOR_DELETE_ACTION, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_displayMessageForDeleteAction"), getFieldEditorParent())); addField(new BooleanFieldEditor(P_DISPLAY_MESSAGE_FOR_HIDE_ACTION, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_displayMessageForHideAction"), getFieldEditorParent())); addField(new ComboFieldEditor(P_INITIAL_PROPERTY_AGGREGATION, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_initialPropertyAggregation"), new String[][] { { AggregationKind.NONE_LITERAL.getName(), AggregationKind.NONE_LITERAL.getName() }, { AggregationKind.SHARED_LITERAL.getName(), AggregationKind.SHARED_LITERAL.getName() }, { AggregationKind.COMPOSITE_LITERAL.getName(), AggregationKind.COMPOSITE_LITERAL.getName() } }, getFieldEditorParent())); addField(new ColorFieldEditor(P_NIEM_REFERENCE_ELEMENT_ILLEGAL_COLOR, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_niemReferenceElementIllegalColor"), getFieldEditorParent())); addField(new FontFieldEditor(P_NIEM_REFERENCE_ELEMENT_ILLEGAL_FONT, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_niemReferenceElementIllegalFont"), getFieldEditorParent())); addField(new ColorFieldEditor(P_NIEM_REFERENCE_ELEMENT_LEGAL_COLOR, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_niemReferenceElementLegalColor"), getFieldEditorParent())); addField(new FontFieldEditor(P_NIEM_REFERENCE_ELEMENT_LEGAL_FONT, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_niemReferenceElementLegalFont"), getFieldEditorParent())); addField(new IntegerFieldEditor(P_CLASS_DIAGRAM_COLUMNS, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_classDiagramColumns"), getFieldEditorParent())); addField(new IntegerFieldEditor(P_CLASS_DIAGRAM_ELEMENT_WIDTH, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_classDiagramElementWidth"), getFieldEditorParent())); addField(new IntegerFieldEditor(P_CLASS_DIAGRAM_COLUMN_WIDTH, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_classDiagramColumnWidth"), getFieldEditorParent())); addField(new IntegerFieldEditor(P_CLASS_DIAGRAM_VERTICAL_PADDING, Activator.INSTANCE.getString("_UI_ClassDiagramPreferencePage_classDiagramVerticalPadding"), getFieldEditorParent())); }