精彩的人生

          好好工作,好好生活

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            147 Posts :: 0 Stories :: 250 Comments :: 0 Trackbacks

           

          Several UI settings such as the perspective bar location, fast view bar location, traditional vs. curvy tabs, etc., are controlled by preferences on the UI plug-in. These have default values defined by the generic workbench. However, the product can override these default values using the product preference customization mechanism.
          Define a product via the products extension point and add the following property:
          <property
            name="preferenceCustomization"
            value="plugin_customization.ini"/>
          
          Then create a file called plugin_customization.ini, in the same directory as the plugin.xml file, with contents of the form:
          <pluginId>/<preferenceName>=<preferenceValue>
          
          For example, to show the perspective bar and fast view bar on the left, and to use curvy tabs, add the following to the plugin_customization.ini file:
          org.eclipse.ui/DOCK_PERSPECTIVE_BAR=left
          org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=false
          org.eclipse.ui/initialFastViewBarLocation=left
          org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=false
          
          For a list of public preferences available on the UI plug-in and their valid values, see the interface org.eclipse.ui.IWorkbenchPreferenceConstants.
          For more details, see the Branding Your Application article and the Customizing a product section in Help.


          http://wiki.eclipse.org/index.php/RCP_FAQ
          posted on 2006-02-15 15:12 hopeshared 閱讀(926) 評論(0)  編輯  收藏 所屬分類: Eclipse
          主站蜘蛛池模板: 柳林县| 义乌市| 剑阁县| 南昌市| 科尔| 镇赉县| 龙岩市| 禹城市| 福安市| 乡宁县| 南丰县| 安福县| 麻阳| 墨玉县| 高安市| 两当县| 镇平县| 板桥市| 峡江县| 中江县| 乌审旗| 怀宁县| 思南县| 河东区| 霞浦县| 中江县| 铜川市| 礼泉县| 西乌珠穆沁旗| 沂水县| 青岛市| 嘉鱼县| 封丘县| 龙海市| 平邑县| 阳东县| 将乐县| 清徐县| 峨山| 江陵县| 牙克石市|