Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to resize items in toolbar
How to resize items in toolbar [message #667079] Tue, 26 April 2011 15:51
David  Pérez is currently offline David Pérez
Messages: 228
Registered: July 2009
Senior Member
Hi,

I have a label that I insert dynamically in a toolbar.

<menuContribution
locationURI="toolbar:org.eclipse.ui.trim.status">
<toolbar id="com.jobisjob.proxy">
<control
class="com.jobisjob.ui.nav.ProxyIndicator"
id="com.jobisjob.ui.nav.ProxyIndicator">
</control>
</toolbar>
</menuContribution>

The label text can change, and so the needed width.
My contribution inherits from WorkbenchWindowControlContribution.
The width of the associated ToolItem is calculated only once.
How do I tell that the width needs to be recalculated?

This doesn't happen with ControlContribution's placed in a view toolbar.

Thanks in advance for any hint.
Previous Topic:CompareEditor throwing Null Exception when selected
Next Topic:Add Drag And Drop support for Team Synchronize View ?
Goto Forum:
  


Current Time: Fri Sep 19 02:05:23 GMT 2014

Powered by FUDForum. Page generated in 0.02115 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software