Bug 54184

Summary: [New editor] Can't contribute toolbar actions to plugin.xml source outline
Product: [Eclipse Project] PDE Reporter: Wassim Melhem <wassim.melhem>
Component: UIAssignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 3.0   
Target Milestone: 3.0 M9   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Wassim Melhem CLA 2004-03-09 14:08:10 EST
Currenlty, in XMLOutlinePage, when I call getSite(), it returns null.
Thus, I am unable to add toolbar actions.
Comment 1 Dejan Glozic CLA 2004-05-07 10:44:10 EDT
Don't call getSite().

Instead, I am now calling 'setActionBars' after 'createControl'. The method in 
turn calls 'makeContributions' on the outline page. I placed the following 
empty method in SourceOutlinePage:

	public void makeContributions(
			IMenuManager menuManager, 
			IToolBarManager toolBarManager, 
			IStatusLineManager statusLineManager) {
		//Create actions and contribute into the provided managers
	}

This is the place to make contributions to the outline view's tool bar.