Bug 10999

Summary: [Perspectives] Feature Request: ability to change perspective icon
Product: [Eclipse Project] Platform Reporter: neil_buesing
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P5 CC: b.muskalla, eclipse.dserodio, gunnar, jrhunter, kwakeroni+eclipse, litrik, pellis, pigeon.alexis, pombredanne, sascha.scholz, Tod_Creasey
Version: 2.0Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 118296    
Bug Blocks:    

Description neil_buesing CLA 2002-03-07 16:45:53 EST
When you create a new perspective, the icon of the current perspective is the 
icon used for the newly created perspective.  Currently, there is no way to 
change this icon to a new icon.  

I would like this new icon to be a selection of the existing icons with the 
ability to add icons.
Comment 1 Kevin Haaland CLA 2002-03-07 21:28:05 EST
Interesting idea. Would you be willing to contribute the code that implements 
this feature?
Comment 2 neil_buesing CLA 2002-03-11 10:07:54 EST
When I get some time, I might be able to take a look at this.
Comment 3 Kevin Haaland CLA 2002-03-15 16:42:49 EST
Niel,

If you implement this feature, please attach it as a patch to this defect 
report. 
Comment 4 Mark Phippard CLA 2004-08-11 12:21:20 EDT
When you save a perspective, it appears that it is saved in workbench.xml in
your .metadata folder.  Specifically, under org.eclipse.ui.workbench.  The new
perspective contains the ID of the perspective it came from, and that is where
the icon is pulled from.

Perhaps a new attribute named "icon" could be added to this XML (or perhaps
already is supported).  This would allow a user to edit the file to point to a
new icon, and eventually someone could add UI that does the same?

Icon, would probably need to be able to accept an arbitrary full path to the image.

So I guess I am asking for the infrastructure to allow this feature to be put in
place.  The UI can come later.
Comment 5 Nick Edgar CLA 2005-10-11 09:44:59 EDT
See also bug 65318.
Comment 6 Nick Edgar CLA 2005-10-11 09:45:19 EDT
*** Bug 112111 has been marked as a duplicate of this bug. ***
Comment 7 Tod Creasey CLA 2006-06-22 08:34:06 EDT
There are currently no plans to work on this feature
Comment 8 Benjamin Muskalla CLA 2006-08-27 16:31:04 EDT
Tod, no plans to work on this means WONTFIX?? Sorry but i think the helpwanted keyword is better in this case. Maybe I'll look at this the next days
Comment 9 Tod Creasey CLA 2006-08-28 08:00:55 EDT
Just shaking the trees to see who is still interested. I'll reopen and add the helpwanted.
Comment 10 Benjamin Muskalla CLA 2006-09-11 18:12:33 EDT
Tod, shouldn't this bug depend on bug 118296? Just want to note this...
Comment 11 Tod Creasey CLA 2006-09-12 08:02:39 EDT
It might do - lets add the dependency anyways so that we can track it (a "related to" field in Bugzilla would be nice...).
Comment 12 Paul Webster CLA 2006-09-28 10:58:32 EDT
There are currently no plans to work on this feature.

PW
Comment 13 Denis Roy CLA 2007-06-22 09:32:28 EDT
Changes requested on bug 193523
Comment 14 Pete Ellis CLA 2007-10-04 10:04:05 EDT
I just wanted to give this issue a bump.

Tied to this is my desire (currently unsupported) for the programmatic specification of the perspective icon.  It would seem that in the current implementation (Eclipse 3.3), the *only* way to associate an icon with a perspective is via the extension spec in the plugin's manifest.

The problem with this is that the specified icon must exist somewhere in the plugin bundle.  This introduces an inefficency in which icon images must exist as copies all over the place in many plugins just to reuse the same image.  In my particular case, for example, I have product branding icons in a plugin dedicted to such product related things.  I have other plugins that specify perspectives for my particular tool application.  There is no way to have these other plugins reference the icons in my product bundle... I am forced to copy my product branding icons to every such bundle in which they are needed.

Even something as simple as a "public Image getImage()" method in the IPerspectiveFactory interface (which is then employed by the workbench) might go a long way to solving the problem.  This would allow the workbench to obtain the image dynamically, instead of once at startup from the associated extension spec, and allow the client implementation of IPerspectiveFactory some flexibility in terms of the location from which the image is retrieved.
Comment 15 Paul Webster CLA 2007-10-04 12:34:27 EDT
There are no plans to work on this or bug 118296 in 3.4.  However, I would consider patches if submitted.

PW