Eclipse Neon: Icons are not disabled

Tags:

Answer: 1

14 hours ago

Problem:

I try to explain the problem I am having with Eclipse: Well, as shown in my attached screenshot all Icons seems to be enabled. But normally some Icons are disabled. For Example: When the Debugger is in running, you cannot press the resume button, but the resume button and the Stop button appear like an enabled button. Nevertheless just one of them is clickable.

Icons

So in summary eclipses logic behind the Icons is working, but eclipse does not change the visual style of a button, when it is disabled (not clickable).

Question:

Does anybody know how to force eclipse to show an disabled icon, when the button is disabled and an enabled icon, when the button is enabled?

Further information:

  • Eclipse Version: Eclipse Neon
  • Ubuntu Version: Ubuntu 16.04 LTS
  • Java Version: Java 8 (openjdk)

What I have already tried to do:

Answer: 2

31 hours ago

This problem is caused by the use of GTK3 in newer ubuntu versions with SWT programs.

You can set a flag in your .profile to make SWT Programms like Eclipse use GTK2 for now.

  1. Open your .profile file, located in your home folder.
  2. Add export SWT_GTK3=0 to the end of the file.

your file should now look similar to this (that is actually my .profile file):

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

### User changes
# disable GTK3 for Eclipse and other SWT programs.
export SWT_GTK3=0 

# disable overlay scrollbars globally for this user.
export GTK_OVERLAY_SCROLLING=0

  1. Save file.
  2. Logout current user and log back in.

If you start Eclipse now, you can see disabled icons greyed out.

Happy coding.

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9