Bug 90291 - [ViewMgmt] Locking all views
Summary: [ViewMgmt] Locking all views
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 298655 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-05 09:34 EDT by Thomas Jacob CLA
Modified: 2019-11-27 07:14 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Jacob CLA 2005-04-05 09:34:20 EDT
I suggest a feature to lock all views by configuration.
I often rearrange, close, resize views by error, which is annoying.
Comment 1 Nick Edgar CLA 2006-03-15 13:28:04 EST
Reassigning bugs in component areas that are changing ownership.
Comment 2 Boris Bokowski CLA 2007-06-22 14:16:47 EDT
One way of doing this would be to make use of the existing concept of a "fixed perspective". You can "hack" this yourself by shutting down Eclipse, modifying your workbench.xml file (in .metadata/plugins/org.eclipse.ui.workbench) and then starting Eclipse again.

In the <perspective> element, after <fastViewBars />, insert lines like this for every view in that perspective:
<viewLayoutRec closeable="false" id="id.of.the.view" moveable="false" />

This will make those views non-closeable and non-moveable.  You can still resize them, but I'm not sure if it's a good idea to disable resizing too given that you can still resize the workbench window itself.

Programmatically, I'm not sure how to change an existing perspective to become fixed.  Sounds like a difficult thing to do given the complexity of the presentation API.  It would be easiest if we had an operation to clone the current perspective with the option of making it a fixed perspective. Similar to "Save Perspective As...", except that one does not actually clone the current perspective...

Let me know if you need more pointers.
Comment 3 Boris Bokowski CLA 2009-11-11 17:30:49 EST
Remy is now responsible for watching the [ViewMgmt] category.
Comment 4 Remy Suen CLA 2009-12-30 16:20:05 EST
*** Bug 298655 has been marked as a duplicate of this bug. ***
Comment 5 Greg Bishop CLA 2013-12-19 10:32:34 EST
This is a serious and annoying issue on eclipse using RDP on a VMs (as of 2013).  The slight delay causes it to be hard to work with moving things once you get them right.  A simple toggleable lock/unlock control on the menu bar at the far right is what is desired.  The work around Boris Bokowski suggests is not practical.
Comment 6 Greg Bishop CLA 2013-12-19 10:36:00 EST
Can you please consider adding a lock unlock toggle to the top menu bar in eclipse to set moveable to be false?

<viewLayoutRec id="id.of.the.view" moveable="false" />

In the current perspective after each element?

I think they should still be resizable and closeable
 (so search or whatever can be closed but when you do a new one it pops back to where it should be).
Comment 7 Paul Webster CLA 2013-12-19 11:08:20 EST
This is marked as help wanted, see http://wiki.eclipse.org/Platform_UI/How_to_Contribute

PW
Comment 8 Lars Vogel CLA 2019-11-27 07:14:35 EST
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.

If the bug is still relevant, please remove the stalebug whiteboard tag.