<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="org.test.a.application"
name="%productName">
<property
name="windowImages"
value="icons/a.16.gif"/>
<property
name="appName"
value="Test">
</property>
<property
name="preferenceCustomization"
value="plugin_customization.ini">
</property>
plugin_customization.ini
# new-style tabs by default
org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=false
# put the perspective switcher on the top right
org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight
# show progress on startup
org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP=false
org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=true
1. public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
2. /* (non-Javadoc)
3. * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer)
4. */
5. public void initialize(IWorkbenchConfigurer configurer) {
6. PlatformUI.getPreferenceStore().setDefault(
7. IWorkbenchPreferenceConstants.SHOW_PROGRESS_ON_STARTUP, true);
8. PlatformUI.getPreferenceStore().setDefault(
9. IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);
10. }
11. }
-
SHOW_PROGRESS_ON_STARTUP
在splash的画面中, 是否显示进度条
-
DISABLE_NEW_FAST_VIEW
是否禁止左下角的Show View As a Fast View按钮
-
SHOW_MEMORY_MONITOR
是否显示内存情况, 并可进行GC操作, 这个比较有意思
-
SHOW_OPEN_ON_PERSPECTIVE_BAR
在PerspectiveBar上,是否显示New Perspective按钮
-
SHOW_TEXT_ON_PERSPECTIVE_BAR
在PerspectiveBar上,是否显示Perspective的名称
-
SHOW_TRADITIONAL_STYLE_TABS
Editor或ViewPart是否使用传统的Tab的样式. 这个肯定用true, false的太老土了.
-
DOCK_PERSPECTIVE_BAR
PerspectiveBar的显示位置, 左上 还是 右上.