org.eclipse.core.runtime.Plugin.initializeDefaultPluginPreferences()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(85)

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

Plugin.initializeDefaultPluginPreferences介绍

[英]Initializes the default preferences settings for this plug-in.

This method is called sometime after the preference store for this plug-in is created. Default values are never stored in preference stores; they must be filled in each time. This method provides the opportunity to initialize the default values.

The default implementation of this method does nothing. A subclass that needs to set default values for its preferences must reimplement this method. Default values set at a later point will override any default override settings supplied from outside the plug-in (product configuration or platform start up).
[中]初始化此插件的默认首选项设置。
此方法在创建此插件的首选项存储后调用。默认值永远不会存储在首选项存储中;每次都必须填写。此方法提供了初始化默认值的机会。
此方法的默认实现不执行任何操作。需要为其首选项设置默认值的子类必须重新实现此方法。稍后设置的默认值将覆盖插件(产品配置或平台启动)外部提供的任何默认覆盖设置。

代码示例

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

/**
 * Internal method. This method is a hook for
 * initialization of default preference values. 
 * It should not be called by clients.
 * 
 * @since 3.0
 * @deprecated
 */
@Deprecated
public final void internalInitializeDefaultPluginPreferences() {
  initializeDefaultPluginPreferences();
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.core.runtime

/**
 * Internal method. This method is a hook for
 * initialization of default preference values. 
 * It should not be called by clients.
 * 
 * @since 3.0
 * @deprecated
 */
public final void internalInitializeDefaultPluginPreferences() {
  initializeDefaultPluginPreferences();
}

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

/**
 * Internal method. This method is a hook for
 * initialization of default preference values. 
 * It should not be called by clients.
 * 
 * @since 3.0
 * @deprecated
 */
public final void internalInitializeDefaultPluginPreferences() {
  initializeDefaultPluginPreferences();
}

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

/**
 * Internal method. This method is a hook for
 * initialization of default preference values.
 * It should not be called by clients.
 *
 * @since 3.0
 * @deprecated
 */
@Deprecated
public final void internalInitializeDefaultPluginPreferences() {
  initializeDefaultPluginPreferences();
}

相关文章