Is there a color picker plugin for Eclipse?
Asked Answered
E

8

15

I'm using Eclipse Galileo PDT for my work. I also use it to edit my CSS files.

Is there a plugin that lets me pick a color (from a palette or even anywhere from the screen) and which returns the HEX value of that color into my CSS file?

Eboh answered 24/9, 2009 at 13:1 Comment(0)
S
2

Aptana Studio has really great support for CSS. CSS color picking is easy, you can grab a color from anywhere on the screen.

You can install Aptana as a plug into an existing Eclipse installation. http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

alt text

Smirch answered 12/12, 2010 at 15:35 Comment(4)
This answer and screenshot applied to Aptana Studio 2. In Studio 3 the color picker is no longer accessible from the toolbar. Instead one should use Commands > CSS > Insert Color...Irrational
Are there such tools but not from Aptana? Aptana is horribleShrewmouse
so disappointing that the asker choose this answer. installing Aptana to have a color picker is like swatting a mosquito with a tactical nuke. Jspresso is a much better optionTemblor
This answer is from 2010, I hope people aren't still using this answer for guidance! I'd recommend now just switching to IntelliJ ;)Smirch
T
5

Jspresso Colors 'n Fonts

Just select any java string literal and right click on it to open the contextual popup menu... then select Jspresso>Choose Color... or select Jspresso>Choose Font...

Supports also tooltip : fly over your string literal to display the current color or font... and activate hyperlink to open the editor popup !

Transom answered 6/4, 2014 at 7:45 Comment(0)
S
2

Aptana Studio has really great support for CSS. CSS color picking is easy, you can grab a color from anywhere on the screen.

You can install Aptana as a plug into an existing Eclipse installation. http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

alt text

Smirch answered 12/12, 2010 at 15:35 Comment(4)
This answer and screenshot applied to Aptana Studio 2. In Studio 3 the color picker is no longer accessible from the toolbar. Instead one should use Commands > CSS > Insert Color...Irrational
Are there such tools but not from Aptana? Aptana is horribleShrewmouse
so disappointing that the asker choose this answer. installing Aptana to have a color picker is like swatting a mosquito with a tactical nuke. Jspresso is a much better optionTemblor
This answer is from 2010, I hope people aren't still using this answer for guidance! I'd recommend now just switching to IntelliJ ;)Smirch
S
1

There are a few plugins at the Eclipse plugins site that might meet your needs.

CSS Designer looks promising:

JointLogic CSS Designer is an Eclipse plugin that provides CSS authoring facilities like - CSS Styles view, CSS declaration designer with preview and web-oriented color picker. It integrates with Eclipse Web Tools Platform (WTP) to allow CSS authoring while editing CSS and HTML files.

Here's a screesnhot from the homepage:

screenshot

Simulcast answered 24/9, 2009 at 13:6 Comment(1)
This is nice, BUT: It does not integrate with the editor window, wich really is a pity. When I'm typing in the editor and want to change a color, then I must search the CSS rule in the CSS Designer window to change the attribute. It would be much more intuitive if the cirrently "selected" rule in the editor is highlighted in the Designer window.Eboh
V
1

I would recommend to use external software: http://www.colorschemer.com/online.html You can integrate it into Eclipse.

Vacillation answered 24/9, 2009 at 13:7 Comment(2)
There is a "Run" submenu in Eclipse you can customize. But, probably, CSS Designer eclipse-plugins.2y.net/eclipse/plugin%5Fdetails.jsp?id=1419 recommended by Rich Seller will suit you better.Vacillation
The point is, CSS Designer does not suite me better as commented above. I'll have a look at the "run" menu. Whereas my wish is a context menu ...Eboh
L
1

I have used this plugin called colors in both Galymeade and I just dropped into Galileo. http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-1281.html you can copy the color code to/from clipboard or editor. Slider bar for coloring, color picker etc. I used it to edit css files on a recent project. Good Luck.

Loxodromic answered 23/10, 2009 at 2:47 Comment(0)
S
1

You might want to check out the second example at http://eclipsescript.org/#example-scripts.

Sherrellsherrer answered 27/10, 2010 at 19:7 Comment(0)
I
1

I created a Groovy Monkey script that opens Eclipse's color picker. It was inspired by what fornwall pointed at (second example of Eclipse Script plugin). It's also able to recognize if current selection is a color so it can be selected it in the picker.

The script is on gist.github, instructions included.

Having a shortcut key for a script is not (yet?) possible in Groovy Monkey, but Crtl+Alt+M runs the last executed script.

Irrational answered 9/3, 2011 at 14:49 Comment(0)
I
1

A good plugin to consider is the Designerator Color Plugin from the Designerator project. It contributes a Colors view as explained in this blog post. No need to install the whole software, the color view is in a separate feature that can be installed by itself.

The Sampler plugin could also be of interest. However it does not show a color picker dialog where one can select a color, it only has the color picker tool for selecting a color from the screen.

Irrational answered 20/4, 2011 at 16:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.