File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -334,13 +334,13 @@ public void createPartControl(Composite parent) {
334334 // done
335335 if (getActivePage () == -1 ) {
336336 setActivePage (0 );
337- IEditorPart part = getEditor ( 0 );
338- if ( part != null ) {
339- final IServiceLocator serviceLocator = part . getEditorSite ();
340- if ( serviceLocator instanceof INestable ) {
341- activeServiceLocator = ( INestable ) serviceLocator ;
342- activeServiceLocator . activate () ;
343- }
337+ }
338+ IEditorPart part = getEditor ( getActivePage ());
339+ if ( part != null ) {
340+ final IServiceLocator serviceLocator = part . getEditorSite ();
341+ if ( serviceLocator instanceof INestable ) {
342+ activeServiceLocator = ( INestable ) serviceLocator ;
343+ activeServiceLocator . activate ();
344344 }
345345 }
346346 initializePageSwitching ();
You can’t perform that action at this time.
0 commit comments