getting current page index from MultiPageEditorPart [message #222767] |
Wed, 13 September 2006 04:54 |
Eclipse User |
|
|
|
Originally posted by: pushpemdra.singh.headstrong.com
Hi
i am having a multi page editor which extends MultiPageEditorPart and while
changing in my model, i call AbstractEditPart.refreshChildren(). so it
results in refresing all the pages of my editor(here in refreshChildren(),
one has to give the list of childerens which it demands in
getModelChildren().) so at one point i can get an instance of
MultiPageEditorPart and also the active page
IWorkbenchPage activePage =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage();
DesignGraphMultiPageEditor activeEditor = (DesignGraphMultiPageEditor)
activePage.getActiveEditor();
but i do want the accordingly current editor page index for which refresing
is processing.
lets say that the active page is 2nd one but when it is refresing for page
1st i want to get that refresing page index =1.
can anyone please help me out
|
|
|
Powered by
FUDForum. Page generated in 0.02610 seconds