简体   繁体   中英

Eclipse e4 disable maximizing part

My Eclipse e4 application contains a menu part. 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 :

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

There is also a swt-minimize-visible .

If I read the code correctly the MinMaxAddon will then ignore the maximize double click as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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