[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] MultipageEditorPart.getActiveEditor problem

Hi..

I'm currently working with the MultiPageEditorPart object and have run
into some difficulties... 

What I am trying to accomplish is to see what changes we need to make in
our plugin in order to get it to work from a single editor environment to
a MultiPage editor. 

The method that we use to get the current editor part is 

WorkbenchPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor()
This would normally return our editor in single page mode, but with
multipage, I get a MultiPageEditorPart back. 

There is a method on MultipageEditorPart .getActiveEditor() which will
return the currently active nested editor Part. The problem is that this
method is not public, it is protected, thus my code cannot access it.  

I am wondering how I can get the active NestedEditorPart given the
MultiPageEditorPart ? Or is there an easier way that other people out
there are using to get the current nested editor?

Cheers. 

--
Dan Zrobok