Bug 20899 - [Contributions] setActivePage call into MultiPageEditorActionBarContributor sometimes sends a null IEditorPart
Summary: [Contributions] setActivePage call into MultiPageEditorActionBarContributor s...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Simon Arsenault CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2002-06-24 13:19 EDT by Joseph Remes CLA
Modified: 2002-09-24 15:59 EDT (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 Joseph Remes CLA 2002-06-24 13:19:40 EDT
Here's the setup (release F3)

I am using the PDE. I have two types of multi-page editors. 
    - launch the runtime and open one of each type.
    - shut down the runtime
    - launch the runtime again
    - switch from the active editor to the other one
    - the call from the workbench into my action bar contributor sends a null 
for the IEditorPart
    - this only happens the first time the active editor is switched after the 
runtime launches.
    - I suspect that the lazy creation of the editor part is just a might too 
lazy. Either that or the bench is calling me a bit too soon.
Comment 1 Nick Edgar CLA 2002-07-04 11:07:29 EDT
setActiveEditor should never be passed null.
Comment 2 Nick Edgar CLA 2002-07-04 11:09:59 EDT
Sorry, you mentioned setActivePage, not setActiveEditor.
Comment 3 Tod Creasey CLA 2002-09-24 15:59:02 EDT
I tested this in 20020920 with a fragment project and a PDE project and could 
not replicate.