Project: Eclipse_Platform_UI
Bug 135648 [Trim] Need API to lock all trim
Reported: 2006-04-07 16:16:18 | Status: verified fixed

One of the standard RCP scenarios identified by Nick was the ability for an RCP app to 'lock' the trim. For now he thinks that simply having the capability to have -all- the trim locked or not would suffice. The proposed change would add a new preference in IWorkbenchWindowConstants (LOCK_TRIM="Lock Trim"), 'false' by default. This does -not- need to be a dynamic preference; there would be no GUI to change it so it wouldn't require pref change listeners... Then I'd modify the TrimLayout to respect the value by querying it on construction.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkbenchPreferenceConstants.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java