4

within part stack, i have part views. , and each view has minimize/maximize buttons,

Is there is any way i can hide minimize/maximize buttons for some particular view part ?

Rüdiger Herrmann
  • 20,512
  • 11
  • 62
  • 79
Khalid Azam
  • 1,615
  • 19
  • 17

2 Answers2

5

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

There are two different ways to work around this:

  1. Remove this dependency org.eclipse.e4.ui.workbench.addons.swt
  2. Use this CSS-snippet:

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

Max Hohenegger
  • 1,609
  • 15
  • 19
  • 2
    i am using CSS.. it is working fine... MPartStack { swt-maximize-visible: false; swt-minimize-visible: false; } MPartStack { swt-maximize-visible: false; swt-minimize-visible: false; } – Khalid Azam Jan 27 '13 at 06:54
1

But there is another bug if you apply rule as below:

.MPartStack { 
    swt-maximize-visible: true; 
    swt-minimize-visible: false; 
}
  • Initially "Minimize" button is hidden.
  • If you maximize a part stack, now "Minimize" button is visible and you can really minimize the part stack.

MinMaxAddon#setCTFButtons(..) does not respect what css rule said, which always reveal the "Minimize" button for maximized part stack.

Feng Dihai
  • 416
  • 3
  • 9