Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Dynamic entries not supported in main toolbars?
Dynamic entries not supported in main toolbars? [message #329279] Wed, 18 June 2008 09:47 Go to next message
Jasper is currently offline JasperFriend
Messages: 84
Registered: July 2009
Member
I have added a <dynamic> entry to a main toolbar. The implementing class
gets constructed, but its #getContributionItems() never gets called. Are
dynamic contributions not supported in the main toolbar?

Thanks,
Jasper.
Re: Dynamic entries not supported in main toolbars? [message #329312 is a reply to message #329279] Wed, 18 June 2008 16:33 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jasper wrote:
> I have added a <dynamic> entry to a main toolbar. The implementing class
> gets constructed, but its #getContributionItems() never gets called. Are
> dynamic contributions not supported in the main toolbar?

Dynamic entries are not supported in any of the ToolBars,
CompoundContributionItem only implements fill(Menu).

It's still do-able with your own implementation (and some hackery), but
the flickering could potentially be a problem (changing the main coolbar
can cause a full re-layout, and the same with view toolbars).

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:How to dynamically update the classpath
Next Topic:Creating a custom Dialog Box
Goto Forum:
  


Current Time: Tue Jul 16 10:04:57 GMT 2024

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

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

Back to the top