Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] [platform-up-dev] cannot create dynamic Status bar controls in eclipse 4.2

In Eclipse 3.8, my code can call toolbar.update().  Then, ToolBarManger will eventually invokes WorkbenchWindowControlContribution. createControl(). At that point, I can create a different set of controls to the toolbar. It does not seems that the <control> tag can provide this capability.

 

Best regards,
Alain Lee
Texas Instruments Canada Ltd

801 - 150 John Street, Toronto ON Canada  M5V 3E3
Phone: 416-340-2136   Fax: 416-599-7171
mailto:a-lee@xxxxxx

 

From: platform-ui-dev-bounces@xxxxxxxxxxx [mailto:platform-ui-dev-bounces@xxxxxxxxxxx] On Behalf Of Paul Webster
Sent: Friday, October 19, 2012 11:23 AM
To: Eclipse Platform UI component developers list.
Subject: Re: [platform-ui-dev] [platform-up-dev] cannot create dynamic Status bar controls in eclipse 4.2

 

On Fri, Oct 19, 2012 at 11:18 AM, Lee, Alain <a-lee@xxxxxx> wrote:

Thanks! I have opened a bug for it.  In my case, I need to use the <dynamic> tag because I need to update the toolbar with different controls depending on the state of certain features in our application.


I'm not sure how dynamic helps you there.  It just places your contribution item in a ToolBarManager.  control will do the same thing, plus initialize it properly to boot.

ToolBarManager doesn't implement a dynamic protocol similar to MenuManager.

PW

--
Paul Webster
Hi floor.  Make me a sammich! - GIR


Back to the top