You can change the perspective icon by updating the iconURI attribute of the iconURI definition in the workbench.xmi file. This file is located inside the workspace metadame directory. e.g. /My-Workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi .
There are usually two lines with the iconURI attribute. For example:
<children xsi:type="advanced:Perspective" ... iconURI="platform:/plugin/com.atlassian.clover.eclipse.core/icons/cview16/clover.gif" tooltip="Clover">
and
<snippets xsi:type="advanced:Perspective" ... iconURI="platform:/plugin/com.atlassian.clover.eclipse.core/icons/cview16/clover.gif" tooltip="Clover">
The icon URI is the path to the image in the Eclipse plugin. (Plugins are located in the {ECLIPSE_HOME}/plugins directory.)
The workbench.xmi file must be edited after closing the Eclipse IDE, because the file will be overwritten when you exit Eclipse.
In this example, I created a custom perspective called Clover, changing the Java Perspective available in Eclipse and saving it as "Clover". My perspective originally had the same icon as the Java perspective:

So, I closed Eclipse, changed the icon paths in workbench.xmi , saved the file, opened the IDE again and got a new icon:

Note. I am using Eclipse 4.6.0 (Neon), but this solution will work for all versions of Eclipse 4.
sudeep
source share