Search code examples
eclipseubuntu-14.04toolbarkde-plasmaeclipse-neon

The Perspective toolbar disappears in KDE


I have an issue with the Perspective toolbar in Eclipse Neon.3 Release (4.6.3) running in Ubuntu 14.04.5:

  • The toolbar is visible when I run Eclipse in Gnome
  • The toolbar is not visible when I run Eclipse in KDE

In KDE, when I click Windows -> New window, the Perspective toolbar appears. But when I close all windows and start Eclipse again, the Perspective toolbar is not visible again.

I tried to remove ~/.eclipse and $WORKSPACE/.metadata. I also tried this and this, but that did not help.

What might be the reason and how to solve that?


Solution

  • I am using Eclipse Oxygen (4.7.0) with KDE on RHEL 7.2 (remotely accessed with PCoIP Agent/Client) and have also encountered this problem of the missing Perspective toolbar, along with other issues:

    • Unsightly rectangular boxes around menu items.
    • Unreadable dark-grey-on-black text in Editors dialog.
    • Eclipse crashing when I open Window > Perspective > Customize Perspective.

    While exploring solutions for an unrelated display issue, I came across a suggestion to force Eclipse to use GTK2 by defining SWT_GTK3=0 in the environment before starting eclipse (this example is for Bash):

    export SWT_GTK3=0
    eclipse
    

    When I did this, not only did the Perspectives toolbar appear, it also solved all the other problems mentioned above.