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
Member
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) {
		super(configurer);

		System.err.println("Number items in coolbar " + this.getActionBarConfigurer().getCoolBarManager().getItems().length);
	}
	
	@Override
	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: Fri Apr 26 17:10:41 GMT 2024

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

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

Back to the top