Eclipse e4 (Juno): Unable to hide the view of the buttons to change / maximize buttons

in the stack part, I have a view of the details., and each view has a decrease / maximize button,

Is there any way to hide the minimize / maximize buttons for a certain part of the view?

+4
source share
2 answers

This is a bug in e4: https://bugs.eclipse.org/bugs/show_bug.cgi?id=394231

There are two different ways around this:

  • Remove this dependency org.eclipse.e4.ui.workbench.addons.swt
  • Use this CSS snippet:

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

+5
source

But there is another mistake if you apply the rule as shown below:

.MPartStack { swt-maximize-visible: true; swt-minimize-visible: false; } 
  • The Minimize button is initially hidden.
  • If you maximize the stack of elements, the Minimize button is now displayed, and you can really minimize the stack of parts.

MinMaxAddon#setCTFButtons(..) does not take into account what is said in the css rule, which always show the Minimize button for a maximized stack of elements.

+1
source

All Articles