mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-11 02:55:23 +02:00
Bug 538942 - Moving backward and forward in "Create Launch
Configuration" dialog of launchbar causes NPEs Change-Id: Ibd11b43d4348abfa74509ce715c8d5e741f1582f Signed-off-by: Umair Sair <umair_sair@hotmail.com>
This commit is contained in:
parent
2ab45c194e
commit
c1e3974e1b
1 changed files with 8 additions and 1 deletions
|
@ -83,7 +83,9 @@ public class NewLaunchConfigEditPage extends WizardPage implements IPageChanging
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handlePageChanging(PageChangingEvent event) {
|
public void handlePageChanging(PageChangingEvent event) {
|
||||||
if (launchConfigType == null) {
|
if (launchConfigType == null || event.getTargetPage() != this) {
|
||||||
|
if (tabViewer != null)
|
||||||
|
tabViewer.setInput(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LaunchConfigurationsDialog.setCurrentlyVisibleLaunchConfigurationDialog(launchConfigurationDialog);
|
LaunchConfigurationsDialog.setCurrentlyVisibleLaunchConfigurationDialog(launchConfigurationDialog);
|
||||||
|
@ -186,6 +188,11 @@ public class NewLaunchConfigEditPage extends WizardPage implements IPageChanging
|
||||||
public void setTabViewer(LaunchConfigurationTabGroupViewer viewer) {
|
public void setTabViewer(LaunchConfigurationTabGroupViewer viewer) {
|
||||||
super.setTabViewer(viewer);
|
super.setTabViewer(viewer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isTreeSelectionEmpty() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private class LaunchConfigurationTabGroupViewerExt extends LaunchConfigurationTabGroupViewer {
|
private class LaunchConfigurationTabGroupViewerExt extends LaunchConfigurationTabGroupViewer {
|
||||||
|
|
Loading…
Add table
Reference in a new issue