ITeye博客

Eclipse RCP plugin_customization.ini

openstudy · 2010-01-27 11:19 · 编程语言 · Markdown

1.在org.eclipse.core.runtime.products扩展点中添加 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);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。