Skip to content

Commit

Permalink
Select the current tab after displaying them
Browse files Browse the repository at this point in the history
Call handleTabSelected right after displaying all tabs in the
LaunchConfigurationTabGroupViewer::displayInstanceTabs so that the
"activated" method of the tab is called.

Contributes to eclipse-pde/eclipse.pde#674
  • Loading branch information
fedejeanne committed Oct 25, 2023
1 parent bf89859 commit 4889d80
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,9 @@ protected void displayInstanceTabs(boolean redrawTabs) {
if (!fViewform.isVisible()) {
fViewform.setVisible(true);
}

// select the tab so that its "activated" method is called
handleTabSelected();
}

/**
Expand Down Expand Up @@ -1455,7 +1458,7 @@ protected void handleTabSelected() {
return;
}
ILaunchConfigurationTab[] tabs = getTabs();
if (fCurrentTabIndex == fTabFolder.getSelectionIndex() || tabs == null || tabs.length == 0 || fCurrentTabIndex > (tabs.length - 1)) {
if (tabs == null || tabs.length == 0 || fCurrentTabIndex > (tabs.length - 1)) {
return;
}
if (fCurrentTabIndex != -1) {
Expand Down

0 comments on commit 4889d80

Please sign in to comment.