Skip to content

Commit 29831f8

Browse files
deepika-ufedejeanne
authored andcommitted
MultiVariablePageTest fails on all platforms
Fixes #1736
1 parent 033234f commit 29831f8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)