Search code examples
javaeclipse-rcpe4

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?


Solution

  • 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.