Bug 54184 - [New editor] Can't contribute toolbar actions to plugin.xml source outline
Summary: [New editor] Can't contribute toolbar actions to plugin.xml source outline
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-09 14:08 EST by Wassim Melhem CLA
Modified: 2004-05-07 10:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.