zoukankan      html  css  js  c++  java
  • Settings的说明

    Plugin-specific settings, used internally as well as by the user, are managed via the Preferences
    class or the IPreferenceStore class in Eclipse RCP, which is set up via the Activator class. The
    NetBeans Platform takes a slightly different approach. Managing settings is handled by the Java
    Preferences API. Access to the Preferences instance is obtained via the NbPreferences class. An
    advantage of this implementation is that data is stored in the NetBeans Platform user direc-
    tory.
    A distinction is made between module-specific data and application-specific data. The
    root() method gives access to settings saved in the config/Preferences.properties file. The
    forModule() method, on the other hand, handles access to data found in module-specific
    properties files. For example, if the code name base is com.galileo.netbeans.module, settings
    will be stored in the config/Preferences/com/galileo/netbeans/module.properties file.
    NbPreferences.forModule(MyClass.class).put("key", "value");
    NbPreferences.root().put("key", "value");
    You can find more detailed information on this topic in Chapter 9.
  • 相关阅读:
    K均值算法
    4.K均值算法应用
    js实现点击不同按钮切换内容
    vue框架中的日期组件转换为yyymmdd格式
    sessionStorage和localStorage的使用方法
    vue中使用axios
    js中的原型对象链
    web端常见测试点
    软件测试手工测试
    前端面试题vue部分
  • 原文地址:https://www.cnblogs.com/cuizhf/p/2216330.html
Copyright © 2011-2022 走看看