Bug 94282 - [MPE] Multi-page swith can't update action in the action bars
Summary: [MPE] Multi-page swith can't update action in the action bars
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-05-10 08:29 EDT by Wang Qiangsheng CLA
Modified: 2009-08-30 02:11 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 Wang Qiangsheng CLA 2005-05-10 08:29:25 EDT
When switch pages in multi-page, the behavior is not the same as swith stand 
alone editor. The actions in the action bar are not refresh.
Use following code to resolve this issue, but have to import a inernal class 
PartSite.
// hack to refresh the actions in the action bars of the multi-page
		// editor.
		SubActionBars bars = (SubActionBars) ( (PartSite) this.getSite
( ) )
				.getActionBars( );
Comment 1 Nick Edgar CLA 2005-05-10 19:15:40 EDT
Please provide more details about your scenario.  

Are you talking about a subclass of MultiPageEditorPart or some other class? 
Who is adding the actions - the nested editor, the outer editor, or the outer
editor's action bar contributor?  

How does the workaround work - are you adding to the obtained bars directly? 
This should have the exact same effect as calling
getEditorSite().getActionBars() from the nested editor, since
MultiPageEditorSite.getActionBars() just returns the outer editor's action bars.
Comment 2 Denis Roy CLA 2009-08-30 02:11:52 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.