在部分 RCP 应用程序上启用 min/max 按钮

Enable min/max button on parts of RCP app

我按照 "New Plug-in Project" 向导创建了一个 RCP 应用程序。 (检查 "This plug-in will make contributions to the UI" 和 "Yes"。Select 模板 "Eclipse 4 RCP application"。检查 "Create sample content"。)当我 运行 应用程序时,没有 min/max 按钮。我试图通过这个 CSS 添加它们:

.MPartStack {
  swt-minimize-visible: true;
  swt-maximize-visible: true;
}

按钮出现了,但没有用。你能帮我正确显示这些按钮吗?谢谢!

我正在使用 Eclipse PDE 氧气释放 (4.7.0)。

在 Application.e4xmi 的 'Add-ons' 列表中包含 org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon。插件条目的全文为:

bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon