@Override public void map(Map<String, ColorThemeSetting> theme, Map<String, ColorThemeMapping> overrideMappings) { preferences.putBoolean("AbstractTextEditor.Color.Background.SystemDefault", false); preferences.putBoolean("AbstractTextEditor.Color.Foreground.SystemDefault", false); preferences.putBoolean("AbstractTextEditor.Color.SelectionBackground.SystemDefault", false); preferences.putBoolean("AbstractTextEditor.Color.SelectionForeground.SystemDefault", false); super.map(theme, overrideMappings); } }
@Override public void map(Map<String, ColorThemeSetting> theme, Map<String, ColorThemeMapping> overrideMappings) { preferences.putBoolean("groovy.editor.groovyDoc.tag.enabled", true); preferences.putBoolean("groovy.editor.groovyDoc.keyword.enabled", true); preferences.putBoolean("groovy.editor.groovyDoc.link.enabled", true); super.map(theme, overrideMappings); } }
@Override public void map(Map<String, ColorThemeSetting> theme, Map<String, ColorThemeMapping> overrideMappings) { preferences.putBoolean("AbstractTextEditor.Color.Background.SystemDefault", false); preferences.putBoolean("AbstractTextEditor.Color.Foreground.SystemDefault", false); super.map(theme, overrideMappings); } }
@Override public void map(Map<String, ColorThemeSetting> theme, Map<String, ColorThemeMapping> overrideMappings) { preferences.putBoolean("sourceHoverBackgroundColor.SystemDefault", false); super.map(theme, overrideMappings); } }
@Override public void map(Map<String, ColorThemeSetting> theme, Map<String, ColorThemeMapping> overrideMappings) { preferences.putBoolean("sourceHoverBackgroundColor.SystemDefault", false); super.map(theme, overrideMappings); } }
/** * Sets the default value for the boolean-valued property with the * given name. * <p> * Note that the current value of the property is affected if * the property's current value was its old default value, in which * case it changes to the new default value. If the property's current * is different from its old default value, its current value is * unaffected. No property change events are reported by changing default * values. * </p> * * @param name the name of the property * @param value the new default value for the property */ @Override public void setDefault(String name, boolean value) { getDefaultPreferences().putBoolean(name, value); }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { // Set the color itself super.putPreferences(preferences, setting); // Enable styling preferences.putBoolean(pluginKey + ".enabled", true); // Bold? preferences.putBoolean(pluginKey + ".bold", setting.isBoldEnabled() != null && setting.isBoldEnabled()); // Italics? preferences.putBoolean(pluginKey + ".italic", setting.isItalicEnabled() != null && setting.isItalicEnabled()); } }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { preferences.put(pluginKey, setting.getColor().asRGB()); if (setting.isBoldEnabled() != null) preferences.putBoolean(pluginKey.replaceAll(".color", ".bold"), setting.isBoldEnabled()); if (setting.isItalicEnabled() != null) preferences.putBoolean(pluginKey.replaceAll(".color", ".italic"), setting.isItalicEnabled()); if (setting.isStrikethroughEnabled() != null) preferences.putBoolean(pluginKey.replaceAll(".color", ".strikethrough"), setting.isStrikethroughEnabled()); if (setting.isUnderlineEnabled() != null) preferences.putBoolean(pluginKey.replaceAll(".color", ".underline"), setting.isUnderlineEnabled()); } }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { preferences.putBoolean(pluginKey + separator + "enabled", true); preferences.put(pluginKey + separator + "color", setting.getColor().asRGB()); if (setting.isBoldEnabled() != null) preferences.putBoolean(pluginKey + separator + "bold", setting.isBoldEnabled()); if (setting.isItalicEnabled() != null) preferences.putBoolean(pluginKey + separator + "italic", setting.isItalicEnabled()); if (setting.isUnderlineEnabled() != null) preferences.putBoolean(pluginKey + separator + "underline", setting.isUnderlineEnabled()); if (setting.isStrikethroughEnabled() != null) preferences.putBoolean(pluginKey + separator + "strikethrough", setting.isStrikethroughEnabled()); }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { String baseKey = pluginKey.replaceAll("Color", ""); preferences.put(pluginKey, setting.getColor().asHex()); if (setting.isBoldEnabled() != null) preferences.putBoolean(baseKey + "Bold", setting.isBoldEnabled()); if (setting.isItalicEnabled() != null) preferences.putBoolean(baseKey + "Italic", setting.isItalicEnabled()); if (setting.isUnderlineEnabled() != null) preferences.putBoolean(baseKey + "Underline", setting.isUnderlineEnabled()); if (setting.isStrikethroughEnabled() != null) preferences.putBoolean(baseKey + "Strikethrough", setting.isStrikethroughEnabled()); }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { preferences.put(pluginKey, setting.getColor().asRGB()); if (setting.isBoldEnabled() != null) preferences.putBoolean(pluginKey + "_bold", setting.isBoldEnabled()); if (setting.isItalicEnabled() != null) preferences.putBoolean(pluginKey + "_italic", setting.isItalicEnabled()); if (setting.isStrikethroughEnabled() != null) preferences.putBoolean(pluginKey + "_strikethrough", setting.isStrikethroughEnabled()); if (setting.isUnderlineEnabled() != null) preferences.putBoolean(pluginKey + "_underline", setting.isUnderlineEnabled()); }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { // Set the color itself super.putPreferences(preferences, setting); // Enables the color setting preferences.putBoolean(pluginKey + "Enabled", true); // Set style preferences.putInt(pluginKey + "Style", getStyleValue(setting)); }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { preferences.put(pluginKey, setting.getColor().asRGB()); if (setting.isBoldEnabled() != null) preferences.putBoolean(pluginKey + "_bold", setting.isBoldEnabled()); if (setting.isItalicEnabled() != null) preferences.putBoolean(pluginKey + "_italic", setting.isItalicEnabled()); if (setting.isStrikethroughEnabled() != null) preferences.putBoolean(pluginKey + "_strikethrough", setting.isStrikethroughEnabled()); if (setting.isUnderlineEnabled() != null) preferences.putBoolean(pluginKey + "_underline", setting.isUnderlineEnabled()); } }
@Override public void putPreferences(IEclipsePreferences preferences, ColorThemeSetting setting) { preferences.put(pluginKey, setting.getColor().asRGB()); if (setting.isBoldEnabled() != null) preferences.putBoolean(pluginKey + "Bold", setting.isBoldEnabled()); } }
@Override void writeBoolean(String key, boolean value) { this.preferences.putBoolean(key, value); }
/** * Sets a boolean in the {@link DefaultScope} * @param qualifier the preference qualifier * @param key the key * @param value the new value */ public static synchronized void setDefaultBoolean(String qualifier, String key, boolean value) { contexts[DEFAULT_CONTEXT].getNode(qualifier).putBoolean(key, value); }
protected void setShowExtensions(boolean show) throws BackingStoreException { if (fPrefs != null) { fPrefs.putBoolean(ICoreConstants.EXTENSIONS_PROPERTY, show); fPrefs.flush(); } fShowExtensions = show; }
private void doShowCleanUpWizard(boolean showWizard) { IEclipsePreferences preferences= fCurrContext.getNode(JavaUI.ID_PLUGIN); if (preferences.get(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, null) != null && preferences.getBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, true) == showWizard) return; preferences.putBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, showWizard); }
private void doShowCleanUpWizard(boolean showWizard) { IEclipsePreferences preferences= fCurrContext.getNode(JavaUI.ID_PLUGIN); if (preferences.get(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, null) != null && preferences.getBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, true) == showWizard) return; preferences.putBoolean(CleanUpConstants.SHOW_CLEAN_UP_WIZARD, showWizard); }
private void configurePerformanceMonitoring() { IEclipsePreferences prefs = Util.getNode("org.eclipse.ui.monitoring"); if(null == prefs) { return; } prefs.putBoolean("monitoring_enabled", true); prefs.putInt("long_event_error_threshold", 800); Util.savePrefs(prefs); }