How can I properly configure my Eclipse Luna dark theme? - eclipse

Eclipse Luna offers a dark color theme.
It's supposed to look like this:
On my system, it comes out like this:
Here's what I did:
Open Eclipse.
In Window → Preferences, set Appearance → Theme to Dark.
Close Eclipse. Restart OS. Open Eclipse.
This is a pretty fresh Linux Mint 17 Cinnamon 64-bit install.
I don't want to have to install the Eclipse color theme plugin. This should work out of the box.
Unlike others, my text field is fine, but my chrome is off. How can I fix this?

I'm using Mint 17 and I had to do four things after switching to Luna's dark theme do get it to look nice.
First I installed all gtk theme engines the repository got.
sudo apt-get install gtk2-engines-* gtk3-engines*
Second install a dark theme (Menu -> System Settings -> Themes), I choose 'Midnight'.
Third, I had to change some gtk settings under the 'Other settings' tab. For 'Controls' I choose 'Xfce-dusk' and 'Window borders' 'nightfall'. These settings might not be available if you don't install the gtk engines.
Fourth, in Eclipse I installed 'Eclipse Color Theme 0.14' from Eclipse Market place and choose 'Sublime Text 2'.
The result is rather striking, IMHO.

You may also have to change the desktop theme (some of the OS-level controls like scrollbars... are not CSS-able by us)...

Try to set the gtk3 env variable to 0, to start Eclipse in gtk2 compatible mode:
#!/bin/bash
export SWT_GTK3=0
./eclipse
(anyway, currently scrollbars are not stylable by SWT/CSS in any OS, but buttons and toobars should look good, especially on linux)

I had this issue with Eclipse CDT Neon 4.6.2 on Ubuntu 14.04 and none of the answers worked for me.
The problem was I tried to tell Eclipse to not use Gtk3 (by passing SWT_GTK3=0) while I did not have Gtk2 installed.
Here is what I did:
Check if Gtk2 is installed: pkg-config --modversion gtk+-2.0
If it is installed, you should see something like: 2.24.23
If not, install it by sudo apt-get install gtk2.0
Test Eclipse by typing SWT_GTK3=0 <eclipse_install_path> in a terminal
(Optional) Create a .desktop file:
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env SWT_GTK3=0 <eclipse_install_path>
Terminal=false
Icon=<path_to_icon>
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development
Unfortunately this will not work with the scrollbars.
So to at least have themed scrollbars in the editor add
-Dswt.enable.themedScrollBar=true directly after -vmargs
in the eclipse.ini file located in your Eclipse package path.

I was trying to solve a different issue but I noticed you're on Linux Mint with Cinnamon, the same as me, and this answer went a long way to making Eclipse display properly: https://stackoverflow.com/a/14075592/1410035
Going to Window > Preferences > General > Appearance and changing the theme to Classic seems to solve the problem.
It's worth mentioning mine was pre-set to GTK.

Related

Preview tab for Eclipse Wikitext

I used to be able to get a preview tab for Eclipse WikiText documents in Linux but in Neon it no longer appears. Is it possible to enable it for a Markdown file?
I can not reproduce your problem in my Eclipse Neon. It works as expected:
1) have you opened the file with the appropriate Editor?
2) Is wikitext installed in your Eclipse?
In the "Eclipse Installation Details" windows (open it with the Help Menu), do you see the WikiText plugins?
For Ubuntu (as discussed in Bug 496323)
3) Is libwebkitgtk 3.0 installed?
Without libwebkitgtk the preview tab is missing:
Run
sudo apt install libwebkitgtk-3.0-0
Then everything works as expected:
Per Jonathan's comment, the GTK webkit dependency must be installed, e.g.
sudo apt-get install libwebkitgtk-3.0-0

Broken tool-tips in eclipse CDT

I am not able to see tool-tips when hovering over variables. I have tried changing the Eclipse Mars theme but its not making a difference.
You have tagged the question "mint" so I assume this is Eclipse on Linux with GTK. The problem may be a GTK3 bug (there are a few in Eclipse Mars unfortunately, some fixed for the upcoming Mars.2 release, some for Neon.0 in the summer).
You can try forcing GTK2 with an evironment variable before launching Eclipse. Set SWT_GTK3=0 For example:
$ export SWT_GTK3=0
$ /path/to/eclipse -data /path/to/workspace

Is there a way to make Eclipse 3.8 dark?

I have to use 3.8, because of Ubuntu and Nvidia. I changed the editor theme to be dark, but the rest (project explorer, the menus, etc) are still bright white. I looked around, but every dark Eclipse plugin that I can find requires Eclipse 4+, and those won't work on mine (I tried :( ).
I am on Ubuntu 13.04 (old because of Nvidia Nsight support). Anything I can do?
Eclipse prior to 4.x used native OS widgets and colors for much of its UI. To change the appearance of those things (e.g., the Explorer views, toolbars, etc) you have to update your operating system colors. To control the Eclipse-specific things (like editor colors), you can install the Eclipse Color Theme plugin from the Eclipse Marketplace.

Eclipse Kepler window drawing problems in Ubuntu

Eclipse Juno (from the Ubuntu repo) (3.8.1) looks fine:
Eclipse Kepler (download from Eclipse website) looks broken:
How do I fix my Window drawing for Kepler (and preferably make it look as compact as Juno)?
Simply change the appearance in Windows > Preferences > General > Appearance.
Restart eclipse.
You can also use colour theme plug-in. It only changes the text in editors i.e syntax highlighter.
Edit
Look at these links for new themes.
How can I change Eclipse theme?
Creating eclipse themes
eclipse-themes

Eclipse failed to response under Fedora 12

i tried fedora12 yesterday, but i find eclipse doesn't work. at first i thought this problem is related to SELinux, but after i turn off selinux, i still can't
create a project, i press the "next" or "finish" button, there is no response. well the "cancel" button works. there is no error popup, or error logs.
i tried eclipse -debug -console; but there is no log output when i click the button. it is so weird, is this happened to anyone before?
environment: fedora12, JDK 1.6.0_17, eclipse Galileo.
computer: t400.
This is a bug due to a change introduced in GTK 2.18, see Bug 291257. The current workaround is to export GDK_NATIVE_WINDOWS=true before to run Eclipse. I actually use the following startup script:
#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true
$ECLIPSE_HOME/eclipse $*
I can't install plugins from update sites, either.
In a blank eclipse install, adding a new update site (es: jboss tools) using the keyboard works; also, it's possible to select a release to install from the available software list.
The new plugin gets installed, but won't appear in perspectives (es: jboss devel) after restart.
After that, adding new update sites and trying to install their releases won't work, the available software list remains empty.
Using Fedora 12 Eclipse 3.5..
By the way, "Fedora Eclipse" rpm is screwed at the moment, it won't install a single file
SOLUTION:
Eclipse 3.6 fix those problems http://download.eclipse.org/eclipse/downloads/
Just add helios update site
There seems to be an incompatability with gtk/gdk shipped with F12. You can tell eclipse to use the native GDK and it should correct these problems:
GDK_NATIVE_WINDOWS=1 ./eclipse
You can also add -DGDK_NATIVE_WINDOWS=1 to your eclipse.ini file. That should help if you switch workspaces.
it's a bug, the keyboard works. try it.