Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » When are menu contributions from plugin.xml added?
When are menu contributions from plugin.xml added? [message #990468] Wed, 12 December 2012 15:49
abadamcd1 abadamcd1 is currently offline abadamcd1 abadamcd1Friend
Messages: 40
Registered: December 2011
Okay, so eclipse creates that ApplicationActionBarAdvisor class that extends ActionBarAdvisor.

Now in my plugin.xml file I define a bunch of buttons for the toolbar. And they show up when the program starts.

But when I try to get the list of contribution items in the ApplicationActionBarAdvisor class it always returns zero. At what point are the toolbar contributions from plugin.xml loaded? When will the actionbaradvisor class return a list of items greater than 0?

public class ApplicationActionBarAdvisor extends ActionBarAdvisor {

	// Actions - important to allocate these only in makeActions, and then use
	// them
	// in the fill methods. This ensures that the actions aren't recreated
	// when fillActionBars is called with FILL_PROXY.

	public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {

		System.err.println("Number items in coolbar " + this.getActionBarConfigurer().getCoolBarManager().getItems().length);
	public void fillCoolBar(ICoolBarManager coolBarManager){

		System.err.println("Number items in coolbar " + coolBarManager.getItems().length);

Previous Topic:RCP PropertyTester doesn't work
Next Topic:Launching exported headless RCP jar
Goto Forum:

Current Time: Tue Jan 25 02:00:19 GMT 2022

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

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

Back to the top