简体   繁体   English

Eclipse E4禁用最大化部分

[英]Eclipse e4 disable maximizing part

My Eclipse e4 application contains a menu part. 我的Eclipse e4应用程序包含一个菜单部分。 This part cannot be moved or closed. 该零件不能移动或关闭。 Now I'm searching a way to disable maximization of that part stack. 现在,我正在寻找一种禁用该零件堆栈最大化的方法。 So this means disabling the double click on the part tab and removing the maximize button on the part stack. 因此,这意味着禁用零件选项卡上的双击并删除零件堆栈上的最大化按钮。 Minimizing should always be possible on the part stack. 零件堆栈上的最小化应该总是可能的。

Is there some tag available for the part stack or can I do this in code? 是否有一些可用于零件栈的标签,或者我可以在代码中执行此操作?

You can control the visibility of the maximize button on the part stack in the CSS for the part stack using swt-maximize-visible : 您可以使用swt-maximize-visible在CSS中为零件堆栈控制零件堆栈上最大化按钮swt-maximize-visible

.MPartStack
{
  swt-maximize-visible: false;
}

There is also a swt-minimize-visible . 还有一个swt-minimize-visible

If I read the code correctly the MinMaxAddon will then ignore the maximize double click as well. 如果我正确阅读了代码,那么MinMaxAddon也将忽略最大化双击。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM