|
|
Re: how to remove grip dots from toolbars [message #670107 is a reply to message #670092] |
Thu, 12 May 2011 16:53 |
Carlo Salinari Messages: 66 Registered: October 2010 |
Member |
|
|
On 5/12/2011 6:06 PM, Paul Webster wrote:
> In your RCP app WorkbenchWindowAdvisor, use the action bar
> configurer to get the ICoolBarManager. The use
> org.eclipse.jface.action.ICoolBarManager.setLockLayout(boole
> an). That might not get rid of the drag handles, but would
> prevent the user from moving them around.
this:
public ActionBarAdvisor createActionBarAdvisor(
IActionBarConfigurer configurer) {
ICoolBarManager manager = configurer.getCoolBarManager();
manager.setLockLayout(true);
return new ApplicationActionBarAdvisor(configurer);
}
locks the main toolbar, but the other toolbars I have (in the status
line, see my other message "taking control of the StatusLine") are still
movable, and the handles are invariably there.
I thought this should be easy, since, for example, in eclipse's Console
view I can see a toolbar without handles. How come?
|
|
|
|
Re: how to remove grip dots from toolbars [message #670148 is a reply to message #670117] |
Thu, 12 May 2011 19:29 |
Carlo Salinari Messages: 66 Registered: October 2010 |
Member |
|
|
On 5/12/2011 7:34 PM, Paul Webster wrote:
> You could try setting the eclipse preference
> org.eclipse.ui.IWorkbenchPreferenceConstants.LOCK_TRIM
> instead (or as well as locking the coolbar). It is usually
> done by providing a plugin_customization.ini file (either in
> your product, or using the runtime option
> -pluginCustomization - see
> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html
> )
ok, this worked! well, sort of.
I already had a pluginCustomization file preferences.ini for my product
containing:
org.eclipse.ui/KEY_CONFIGURATION_ID=ui.accelerators.scheme.d efault
to which I added:
org.eclipse.ui/LOCK_TRIM=true
(I tried org.eclipse.ui.IWorkbenchPreferenceConstants.LOCK_TRIM=true
first but it didn't work, so by analogy I guessed the correct value for
LOCK_TRIM, but I don't know where this "/slashed" syntax comes from).
Effects:
- the uncool-toolbar in the status-line is now unmovable and shows no
drag handlers (yeah!)
- the coolbar is unmovable, but it still shows the handlers (bad, but I
can live with it)
does this make sense to you?
> View toolbars are completely different (they were never
> designed to be moved around).
I see, thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 9.32098 seconds