How to change open perspective icon?

I need to change "Open Perspective" icon in my RCP application. Is it even possible to do it?

Answers


This has not been tested, but I believe it should work...

The image used for the "new perspective" item (see PerspectiveBarNewContributionItem) is based on the workbench images (WorkbenchImages.getImageDescriptor(...)).

The images of WorkbenchImages is installed via WorkbenchImages.declareImage(...) which in this case ends up as FileLocator.find(<bundle of org.eclipse.ui>, "$nl$/icons/full/eview16/new_persp.gif", null).

So.. you should be able to override the existing image by installing a new fragment for org.eclipse.ui with your new image as the jar resource/entry named <nl>/icons/full/eview16/new_persp.gif where <nl> is your locale language - e.g. da for Danish and en for English (I cannot see you location). This image should override the default...


Need Your Help

JavaScript Puzzle I can't figure out

javascript puzzle

This is a kata for code wars, and I can't seem to figure it out. I have never worked with JavaScript before.

Problem when porting to IIS 7.5

asp.net vb.net iis-7.5

I got an ASP.NET app from someone who used to run it on his IIS on Windows XP (I don't know which IIS version he has).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.