Transparent background in Eclipse?

3

Is there a way to make the background of Eclipse IDE text editor transparent? I would like to adjust the alpha transparency of the background, but have the text still be opaque. Perhaps there is a plugin that accomplishes this? I haven't seen any options under preferences. And my search on Google has ended in vain thus far, although I did find some nice color themes.

Example (Textmate):

Transparent Textmate

Note that the text is still solid. This is important, since making the whole window transparent could cause text to bleed into the desktop wallpaper (or whatever is under Eclipse). I'm interested in solutions for all platforms that Eclipse runs on.

Related question:

isuldor

Posted 2011-06-11T03:29:32.757

Reputation: 1 726

Answers

1

I'm afraid it's not possible. However, Java 7 which is expected as of July 28th, 2011 has support for translucent windows. After that, Eclipse is community effort... your best bet is to either to participate in development, or consider programming Eclipse plugin (or find someone interested in progamming plugin).

Domchi

Posted 2011-06-11T03:29:32.757

Reputation: 2 557

1according to that link, it may indeed be possible as of Java 6 Update 10. Am I reading that wrong? – Joshua – 2011-06-21T20:02:33.027

Josh, you are right - I was reading the note above that documentation is updated for Java 7, and didn't see the smaller note which is actually accurate. So, I stand corrected. – Domchi – 2011-07-09T13:13:22.547

0

I know that it's not exactly what you ask, but an obvious solution would be to use eclim system to make Eclipse available to macvim/terminal vim and make that transparent.

For macvim the option is to set to 20%

set transparency=20

It might be even possible to swap the editor inside eclipse for macvim, but I am less sure about that.

celebdor

Posted 2011-06-11T03:29:32.757

Reputation: 826

0

There is a free application called Afloat that has the ability to make windows transparent (and much more). I would check that out.

Dennis

Posted 2011-06-11T03:29:32.757

Reputation: 308

0

In Fedora, you could use Compiz to make it transparent (Video tutorial on how to do just that here.) In both Fedora and Windows, what about setting a transparent image as the background?

kathryn

Posted 2011-06-11T03:29:32.757

Reputation: 101

0

I don't think it's possible to get the effect you are looking for.

Eclipse uses SWT as its windowing toolkit, and if I remember correctly it has limited support for transparent and translucent windows. This support is probably limited to the entire window and not parts of it.

SWT uses a class Shell that is the actual window, creating a Shell with the flag NO_TRIM will cause it to have transparent background. As this window is created by the Eclipse platform I doubt that it is possible to access it via a plugin.

If you feel like building a plugin translucent support could probably be achieved by accessing functions in the native toolkit directly (either the WIN32 API or the GTK API) and applying them to the Eclipse components. As I have limited knowledge of Eclipse plugins I can't direct you to any particular starting place for creating such a plugin. Sorry.

Andreas Holstenson

Posted 2011-06-11T03:29:32.757

Reputation: 101

0

You could use compiz in Ubuntu, and most other linux distributions for making the windows transparent.

Neel Mehta

Posted 2011-06-11T03:29:32.757

Reputation: 271