热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.eclipse.core.runtime.preferences.IEclipsePreferences.putBoolean()方法的使用及代码示例

本文整理了Java中org.eclipse.core.runtime.preferences.IEclipsePreferences.putBoolean()方法的一些

本文整理了Java中org.eclipse.core.runtime.preferences.IEclipsePreferences.putBoolean()方法的一些代码示例,展示了IEclipsePreferences.putBoolean()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IEclipsePreferences.putBoolean()方法的具体详情如下:
包路径:org.eclipse.core.runtime.preferences.IEclipsePreferences
类名称:IEclipsePreferences
方法名:putBoolean

IEclipsePreferences.putBoolean介绍

暂无

代码示例

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@Override
public void map(Map theme, Map 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);
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@Override
public void map(Map theme, Map 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);
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@Override
public void map(Map theme, Map overrideMappings) {
preferences.putBoolean("AbstractTextEditor.Color.Background.SystemDefault", false);
preferences.putBoolean("AbstractTextEditor.Color.Foreground.SystemDefault", false);
super.map(theme, overrideMappings);
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@Override
public void map(Map theme, Map overrideMappings) {
preferences.putBoolean("sourceHoverBackgroundColor.SystemDefault", false);
super.map(theme, overrideMappings);
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@Override
public void map(Map theme, Map overrideMappings) {
preferences.putBoolean("sourceHoverBackgroundColor.SystemDefault", false);
super.map(theme, overrideMappings);
}
}

代码示例来源:origin: org.eclipse.core/runtime

/**
* Sets the default value for the boolean-valued property with the
* given name.
*


* 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.
*


*
* @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);
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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());
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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());
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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());
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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());
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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());
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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));
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@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());
}
}

代码示例来源:origin: eclipse-color-theme/eclipse-color-theme

@Override
public void putPreferences(IEclipsePreferences preferences,
ColorThemeSetting setting) {
preferences.put(pluginKey, setting.getColor().asRGB());
if (setting.isBoldEnabled() != null)
preferences.putBoolean(pluginKey + "Bold", setting.isBoldEnabled());
}
}

代码示例来源:origin: eclipse/buildship

@Override
void writeBoolean(String key, boolean value) {
this.preferences.putBoolean(key, value);
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.debug.core

/**
* 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);
}

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

protected void setShowExtensions(boolean show) throws BackingStoreException {
if (fPrefs != null) {
fPrefs.putBoolean(ICoreConstants.EXTENSIONS_PROPERTY, show);
fPrefs.flush();
}
fShowExtensiOns= show;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

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);
}

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

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);
}

代码示例来源:origin: vogellacompany/saneclipse

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);
}

推荐阅读
author-avatar
哲亚Zoe
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有