Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjszursze2002-06-05 18:06:48 -0400
committerjszursze2002-06-05 18:06:48 -0400
commitc2372718f8588a53333fd83e50bbe863719e23cd (patch)
tree7e319cf5eb5753012524d93724c1d0a721d25dbd /org.eclipse.debug.ui
parent893e2f0698911043dd03614c1a43e52bceef944d (diff)
downloadeclipse.platform.debug-c2372718f8588a53333fd83e50bbe863719e23cd.tar.gz
eclipse.platform.debug-c2372718f8588a53333fd83e50bbe863719e23cd.tar.xz
eclipse.platform.debug-c2372718f8588a53333fd83e50bbe863719e23cd.zip
fix for 19170
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationDialog.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationDialog.java
index 9eb107746..b40b1b1da 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationDialog.java
@@ -195,6 +195,11 @@ public class LaunchConfigurationDialog extends TitleAreaDialog
private TabFolder fTabFolder;
/**
+ * Flag that indicates when the tabs are being disposed.
+ */
+ private boolean fDisposingTabs = false;
+
+ /**
* The current (working copy) launch configuration
* being displayed/edited or <code>null</code> if
* none
@@ -1608,6 +1613,7 @@ public class LaunchConfigurationDialog extends TitleAreaDialog
}
protected void disposeExistingTabs() {
+ setDisposingTabs(true);
TabItem[] oldTabs = getTabFolder().getItems();
for (int i = 0; i < oldTabs.length; i++) {
oldTabs[i].dispose();
@@ -1617,6 +1623,7 @@ public class LaunchConfigurationDialog extends TitleAreaDialog
}
setTabGroup(null);
setTabType(null);
+ setDisposingTabs(false);
}
/**
@@ -1735,6 +1742,14 @@ public class LaunchConfigurationDialog extends TitleAreaDialog
return fRevertButton;
}
+ private void setDisposingTabs(boolean disposing) {
+ fDisposingTabs = disposing;
+ }
+
+ private boolean isDisposingTabs() {
+ return fDisposingTabs;
+ }
+
/**
* Sets the tab folder
*
@@ -2155,6 +2170,9 @@ public class LaunchConfigurationDialog extends TitleAreaDialog
* the tab being entered.
*/
protected void handleTabSelected() {
+ if (isDisposingTabs()) {
+ return;
+ }
ILaunchConfigurationTab[] tabs = getTabs();
if (fCurrentTabIndex == getTabFolder().getSelectionIndex() || tabs == null || tabs.length == 0 || fCurrentTabIndex > (tabs.length - 1)) {
return;

Back to the top