mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Propertly implemented stubs for NewLaunchConfigEditPage
This code is required if any LaunchTab interacts with other tabs in LC Change-Id: I5d5e3b6d4e51b1f3ee0ac6297ebb4d88ad220224 Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com> Reviewed-on: https://git.eclipse.org/r/36955 Tested-by: Hudson CI
This commit is contained in:
parent
cf0b905a5a
commit
8c6bad3c80
1 changed files with 13 additions and 6 deletions
|
@ -240,14 +240,13 @@ public class NewLaunchConfigEditPage extends WizardPage {
|
|||
|
||||
@Override
|
||||
public ILaunchConfigurationTab[] getTabs() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return tabGroup.getTabs();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ILaunchConfigurationTab getActiveTab() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
int i = tabFolder.getSelectionIndex();
|
||||
return tabGroup.getTabs()[i];
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -257,12 +256,20 @@ public class NewLaunchConfigEditPage extends WizardPage {
|
|||
|
||||
@Override
|
||||
public void setActiveTab(ILaunchConfigurationTab tab) {
|
||||
// TODO Auto-generated method stub
|
||||
ILaunchConfigurationTab[] tabs = tabGroup.getTabs();
|
||||
int tLen = tabs.length;
|
||||
for (int i = 0; i < tLen; i++) {
|
||||
ILaunchConfigurationTab tabi = tabs[i];
|
||||
if (tabi.equals(tab)) {
|
||||
setActiveTab(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setActiveTab(int index) {
|
||||
// TODO Auto-generated method stub
|
||||
tabFolder.setSelection(index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue