Bug 7731

Summary: Page::init(IPageSite pageSite) never called on JavaOutlinePage
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Randy_Giffen
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 6306    

Description Adam Kiezun CLA 2002-01-16 10:31:18 EST
consequently, getSite() on JavaOutlinePage returns null, which is against API 
and prevents accessing things like IActionBars
Comment 1 Erich Gamma CLA 2002-01-17 04:36:58 EST
this bug is blocking us from adding short cuts for cut/copy/paste in the 
outliner.

I noticed that the JavaOutlinePage has some special init code and it could 
cause this problem. 

Randy, does this work for other Outline pages?
Comment 2 Randy Giffen CLA 2002-01-17 10:18:18 EST
JavaOutlinePage.createControl calls getSite so this must be working.
First the page is constructed, then init is called, then createControl is 
called. So perhaps you are calling getSite too early.

I noticed in checking our code that the last paragraph of the JavaDoc for 
IContentOutlinePage was wrong and have released a fix.