How to resize items in toolbar [message #667079] |
Tue, 26 April 2011 15:51 |
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02476 seconds