Bug 7731 - Page::init(IPageSite pageSite) never called on JavaOutlinePage
Summary: Page::init(IPageSite pageSite) never called on JavaOutlinePage
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 6306
  Show dependency tree
 
Reported: 2002-01-16 10:31 EST by Adam Kiezun CLA
Modified: 2002-01-17 10:18 EST (History)
1 user (show)

See Also:


Attachments

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