Bug 118296 - [Perspectives] Pass image descriptor when cloning a perspective
Summary: [Perspectives] Pass image descriptor when cloning a perspective
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks: 10999
  Show dependency tree
 
Reported: 2005-11-28 15:56 EST by Eric Klingelberger CLA
Modified: 2019-09-06 16:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Klingelberger CLA 2005-11-28 15:56:20 EST
Currently in Eclipse 3.1.1 the clonePerspective method of IPerspectiveRegistry takes a perspective id, perspective label, and a perspective descriptor.  With this method I can set the label for the new perspective descriptor clone, but not the image descriptor.  There needs to be another clonePerspective method that takes an additional argument for an ImageDescriptor.

The following is a list of changes required to realize this enhancement:

1) Update org.eclipse.ui.IPerspectiveRegistry to include the new method API
public IPerspectiveDescriptor clonePerspective(String id, String label, ImageDescriptor image, IPerspectiveDescriptor desc) throws IllegalArgumentException;

2) Update org.eclipse.ui.internal.registry.PerspectiveRegistry to implement the new interface method. Same as other clonePerspective method, but it also checks to see if the ImageDescriptor passed in is null and it calls an alternate PerspectiveDescriptor constructor described in step 3.

3) Update org.eclipse.ui.registry.PerspectiveDescriptor to include an additional constructor that takes and ImageDescriptor as an argument.
public PerspectiveDescriptor(String id, String label, ImageDescriptor image, PerspectiveDescriptor originalDescriptor)
This constructor uses the ImageDescriptor passed in as an argument.
Comment 1 Nick Edgar CLA 2005-11-29 13:25:11 EST
The image descriptor would also need to be persisted between sessions.
It is unlikely the UI team will get to this request for 3.2.  A patch would help its chances.
Comment 2 Nick Edgar CLA 2006-03-15 11:46:56 EST
Reassigning bugs in component areas that are changing ownership.
Comment 3 Paul Webster CLA 2006-09-28 11:01:28 EDT
There are currently no plans to work on this feature.

PW
Comment 4 Denis Roy CLA 2007-06-22 09:33:13 EDT
Changes requested on bug 193523
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:18:43 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.