Bug 118446 - [Perspectives] Ability to setLabel, setImageDescriptor, setDescription on an existing perspective
Summary: [Perspectives] Ability to setLabel, setImageDescriptor, setDescription on an ...
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:
 
Reported: 2005-11-29 12:01 EST by Eric Klingelberger CLA
Modified: 2019-09-06 16:14 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-29 12:01:30 EST
Currently in Eclipse 3.1.1 a developer can programmatically save a newly modified perspective (i.e. call showView on the page defined by the perspective and then call savePerspectiveAs on that perspective).  This works great for creating a new perspective with a customized layout.  It would also be useful to, in addition to layout, allow the perpective label, imageDescriptor, and description to be customized as well.  Of course it would need to be noted in the javadocs that these set methods would not get cached and persisted unless savePerspectiveAs was called subsequent to calling one of these methods.

Updated required to realize this are listed below:

1) Update org.eclipse.ui.IPerspectiveDescriptor to include the new API:
public void setDescription(String description);
public void setImageDescriptor(ImageDescriptor);
public void setLabel(String label);

add JavaDoc stating that nothing is persisted or cached when invoking the set methods on the descriptor, and that the user of this API should call savePerspectiveAs if they wish the data to be cached in the user's workspace

2) Update org.eclipse.ui.internal.PerspectiveDescriptor to implement the APIs above.
Comment 1 Nick Edgar CLA 2005-11-29 20:50:35 EST
Note that the milestone field is for the owner to set, when planning and/or when a PR is closed.
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:31 EDT
There are currently no plans to work on this feature.

PW
Comment 4 Denis Roy CLA 2007-06-22 09:33:14 EDT
Changes requested on bug 193523
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:14:35 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.