Skip to content

Commit

Permalink
MultiVariablePageTest fails on all platforms
Browse files Browse the repository at this point in the history
Fixes #1736
  • Loading branch information
deepika-u committed Apr 12, 2024
1 parent 016247d commit 2e66e50
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,13 @@ public void createPartControl(Composite parent) {
// done
if (getActivePage() == -1) {
setActivePage(0);
IEditorPart part = getEditor(0);
if (part != null) {
final IServiceLocator serviceLocator = part.getEditorSite();
if (serviceLocator instanceof INestable) {
activeServiceLocator = (INestable) serviceLocator;
activeServiceLocator.activate();
}
}
IEditorPart part = getEditor(getActivePage());
if (part != null) {
final IServiceLocator serviceLocator = part.getEditorSite();
if (serviceLocator instanceof INestable) {
activeServiceLocator = (INestable) serviceLocator;
activeServiceLocator.activate();
}
}
initializePageSwitching();
Expand Down

0 comments on commit 2e66e50

Please sign in to comment.