So, to identify what version I want to pop over to in the app switcher or the dock I needed some way to change the icon in both places. Turns out that this is one of those annoyances that is super easy to fix, and once you do you wonder why you put up with it for so long. The first thing I thought of was to change the eclipse.ini file, but it turns out that like a lot of things having to do with Eclipse configuration, the -Xdock:icon property in this context is totally vestigial -- or at least it doesn't actually seem to do anything. But the answer is even simpler than that. Here's what to do, and again, it ain't rocket science:
- Right-click on your Eclipse Application
- Select "Show Package Contents"
- Open Contents:Resources
- Replace the Eclipse.icns image with a different one
- Enjoy some new found clarity.
As a bonus (today only!!) I've even included some icons for you to use:
Blue Eclipse Icon
Green Eclipse Icon
Gray Eclipse Icon
Teal Eclipse Icon
Snazzy, huh? Now instead of this:
You get this:
[By the way, why does it take blogger.com five lines of html to insert one image? And why isn't their editor smart enough to not not create extra BRs between li tags? And why can't they make an editor that displays more than twenty lines of text at a time. Basically, with everyone crowing about how everything is going to web applications, why can't anyone seem to create one with a larger text window than the VT102 I used in high school? I mean, doesn't Google have like billions of dollars in spare cash to hire a few decent web programmers for blogger?]
To use a different icon for hosted Eclipse Application Runtimes, go to the Arguments tab of your Run Configuration for your app and add the following line to your VM Arguments:
-Xdock:icon=/Path/where/you/put/the/damn/thing/EclipseGray.icns
If you haven't done it before, it's really easy to make your own .icns file. Just:
- Install XCode Developer tools if you don't have them.
- Open Icon Composer in Developer:Applications:Utilities.
- Open up an icns file you already have, like the Eclipse.icns. Or just create one form scratch. (I really don't need to spell this out I guess..
- Copy the images you've edited into the cells.
You can just drag and drop from your image editing program into the boxes, assuming that they are compatible. I just use Preview for my editing, and for the icns above I just used the nifty Adjust Color tool. These aren't the most attractive icons in the world, but they'll do. It's amazing what you can do with the built in Preview tool plus a little creative cutting and pasting. I thought about creating some icons for say "Runtime", "Modeling", etc.. but I've already spent enough time on this. Back to hell for me.



Miles,
ReplyDeletethanks for sharing this
ekke
Hi Miles,
ReplyDeletenice rant about blogger.com. Try Google's Chrome browser - it allows to resize text areas on the client side. I guess it works for the blogger-widgets as well.
Cheers,
Sebastian
Nice to know how to change those icons. I really would prefer a textual overlay with 3.6M6 3.7 etc. instead of adjusting the color. What tool would be easiest to use for adding small texts on top of the existing icon images?
ReplyDeleteHi Hallvard,
ReplyDeleteSee my next post for more creative ways to waste time.. :)
http://milesparker.blogspot.com/2010/08/eclipse-dock-icons-part-deux.html
cheers,
Miles