---
title: "Eclipse RCP plugin_customization.ini"
author: "openstudy"
date: "2010-01-27T11:19:21Z"
tags: []
categories: ["编程语言"]
slug: "eclipse-rcp-plugin-customization-ini"
draft: false
lastmod: "2010-01-27T11:19:21Z"
id: 580933
url: "https://openstudy.iteye.com/blog/580933"
---

1.在org.eclipse.core.runtime.products扩展点中添加
<property name="preferenceCustomization" value="plugin_customization.ini">
</property>
plugin_customization.ini文件放在项目根目录下

具体变量名和变量的取值,org.eclipse.ui.IWorkbenchPreferenceConstants有详细说明.
//add a progress bar showing the plug-in load sequence
org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP=true

SHOW_TRADITIONAL_STYLE_TABS
DOCK_PERSPECTIVE_BAR——设置透视图标题栏停泊位置，默认值为TOP_RIGHT，还可以设置为TOP_LEFT、LEFT
SHOW_TEXT_ON_PERSPECTIVE_BAR——设置透视图是否显示标题文本，默认为true
SHOW_INTRO——启动时是否显示欢迎画面，默认值为true
EDITOR_MINIMUN_CHARACTERS——在很多编辑器重叠时，设置编辑器标题文字的最短长度，默认为8个字符

2.程序实现
修改ApplicationWordbechAdvisor.java文件的initialize()方法
PlatformUI.getPreferenceStore().setValue(   
IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);
或
PlatformUI.getPreferenceStore().setDefault(  
IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);